Class: Google::Apis::CloudsearchV1::SearchQualityMetadata

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

Additional search quality metadata of the item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SearchQualityMetadata

Returns a new instance of SearchQualityMetadata



3672
3673
3674
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3672

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

Instance Attribute Details

#qualityFloat

An indication of the quality of the item, used to influence search quality. Value should be between 0.0 (lowest quality) and 1.0 (highest quality). Corresponds to the JSON property quality

Returns:

  • (Float)


3670
3671
3672
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3670

def quality
  @quality
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3677
3678
3679
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3677

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