Class: Google::Apis::CloudsearchV1::SourceConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SourceConfig
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Configurations for a source while processing a Search or Suggest request.
Instance Attribute Summary collapse
-
#crowding_config ⇒ Google::Apis::CloudsearchV1::SourceCrowdingConfig
Set search results crowding limits.
-
#scoring_config ⇒ Google::Apis::CloudsearchV1::SourceScoringConfig
Set the scoring configuration.
-
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceConfig
constructor
A new instance of SourceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceConfig
Returns a new instance of SourceConfig.
4401 4402 4403 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4401 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crowding_config ⇒ 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.
Corresponds to the JSON property crowdingConfig
4388 4389 4390 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4388 def crowding_config @crowding_config end |
#scoring_config ⇒ Google::Apis::CloudsearchV1::SourceScoringConfig
Set the scoring configuration. This allows modifying the ranking of results
for a source.
Corresponds to the JSON property scoringConfig
4394 4395 4396 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4394 def scoring_config @scoring_config end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
4399 4400 4401 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4399 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4406 4407 4408 4409 4410 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4406 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 |