class Google::Apis::CloudsearchV1::SourceConfig

Configurations for a source while processing a Search or Suggest request.

Attributes

crowding_config[RW]

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. Corresponds to the JSON property `crowdingConfig` @return [Google::Apis::CloudsearchV1::SourceCrowdingConfig]

scoring_config[RW]

Set the scoring configuration. This allows modifying the ranking of results for a source. Corresponds to the JSON property `scoringConfig` @return [Google::Apis::CloudsearchV1::SourceScoringConfig]

source[RW]

Defines sources for the suggest/search APIs. Corresponds to the JSON property `source` @return [Google::Apis::CloudsearchV1::Source]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4475
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 4480
def update!(**args)
  @crowding_config = args[:crowding_config] if args.key?(:crowding_config)
  @scoring_config = args[:scoring_config] if args.key?(:scoring_config)
  @source = args[:source] if args.key?(:source)
end