Class: Google::Apis::CloudsearchV1::SourceScoringConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SourceScoringConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Set the scoring configuration. This allows modifying the ranking of results for a source.
Instance Attribute Summary collapse
-
#source_importance ⇒ String
Importance of the source.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceScoringConfig
constructor
A new instance of SourceScoringConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceScoringConfig
Returns a new instance of SourceScoringConfig.
4388 4389 4390 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4388 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_importance ⇒ String
Importance of the source.
Corresponds to the JSON property sourceImportance
4386 4387 4388 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4386 def source_importance @source_importance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4393 4394 4395 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4393 def update!(**args) @source_importance = args[:source_importance] if args.key?(:source_importance) end |