Class: Google::Apis::CloudsearchV1::RetrievalImportance
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::RetrievalImportance
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#importance ⇒ String
Indicates the ranking importance given to property when it is matched during retrieval.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RetrievalImportance
constructor
A new instance of RetrievalImportance.
-
#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) ⇒ RetrievalImportance
Returns a new instance of RetrievalImportance
3465 3466 3467 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3465 def initialize(**args) update!(**args) end |
Instance Attribute Details
#importance ⇒ String
Indicates the ranking importance given to property when it is matched
during retrieval. Once set, the token importance of a property cannot be
changed.
Corresponds to the JSON property importance
3463 3464 3465 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3463 def importance @importance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3470 3471 3472 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3470 def update!(**args) @importance = args[:importance] if args.key?(:importance) end |