Class: Google::Apis::CloudsearchV1::SourceConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SourceConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ SourceConfig
Returns a new instance of SourceConfig.
16574 16575 16576 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16574 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
16561 16562 16563 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16561 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
16567 16568 16569 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16567 def scoring_config @scoring_config end |
#source ⇒ Google::Apis::CloudsearchV1::Source
Defines sources for the suggest/search APIs.
Corresponds to the JSON property source
16572 16573 16574 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16572 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16579 16580 16581 16582 16583 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16579 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 |