class Google::Apis::CloudsearchV1::SourceCrowdingConfig

Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host “crowd out” other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.

Attributes

num_results[RW]

Maximum number of results allowed from a source. No limits will be set on results if this value is less than or equal to 0. Corresponds to the JSON property `numResults` @return [Fixnum]

num_suggestions[RW]

Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0. Corresponds to the JSON property `numSuggestions` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4507
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 4512
def update!(**args)
  @num_results = args[:num_results] if args.key?(:num_results)
  @num_suggestions = args[:num_suggestions] if args.key?(:num_suggestions)
end