Class: Google::Apis::CloudsearchV1::RetrievalImportance

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RetrievalImportance

Returns a new instance of RetrievalImportance.



6646
6647
6648
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6646

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#importanceString

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

Returns:

  • (String)


6644
6645
6646
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6644

def importance
  @importance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6651
6652
6653
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6651

def update!(**args)
  @importance = args[:importance] if args.key?(:importance)
end