Class: Google::Apis::CloudsearchV1::RetrievalImportance
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::RetrievalImportance
- 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
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.
Constructor Details
#initialize(**args) ⇒ RetrievalImportance
Returns a new instance of RetrievalImportance.
6679 6680 6681 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6679 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
6677 6678 6679 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6677 def importance @importance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6684 6685 6686 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6684 def update!(**args) @importance = args[:importance] if args.key?(:importance) end |