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

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

Overview

Additional search quality metadata of the item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchQualityMetadata

Returns a new instance of SearchQualityMetadata.



7109
7110
7111
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7109

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). The default value is 0.0. Corresponds to the JSON property quality

Returns:

  • (Float)


7107
7108
7109
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7107

def quality
  @quality
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7114
7115
7116
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7114

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