Class: Google::Apis::CloudsearchV1::IntegerPropertyOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::IntegerPropertyOptions
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Options for integer properties.
Instance Attribute Summary collapse
-
#maximum_value ⇒ Fixnum
The maximum value of the property.
-
#minimum_value ⇒ Fixnum
The minimum value of the property.
-
#operator_options ⇒ Google::Apis::CloudsearchV1::IntegerOperatorOptions
Used to provide a search operator for integer properties.
-
#ordered_ranking ⇒ String
Used to specify the ordered ranking for the integer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IntegerPropertyOptions
constructor
A new instance of IntegerPropertyOptions.
-
#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) ⇒ IntegerPropertyOptions
Returns a new instance of IntegerPropertyOptions
1386 1387 1388 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maximum_value ⇒ Fixnum
The maximum value of the property. The minimum and maximum values for the
property are used to rank results according to the
ordered ranking.
Indexing requests with values greater than the maximum are accepted and
ranked with the same weight as items indexed with the maximum value.
Corresponds to the JSON property maximumValue
1361 1362 1363 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1361 def maximum_value @maximum_value end |
#minimum_value ⇒ Fixnum
The minimum value of the property. The minimum and maximum values for the
property are used to rank results according to the
ordered ranking.
Indexing requests with values less than the minimum are accepted and
ranked with the same weight as items indexed with the minimum value.
Corresponds to the JSON property minimumValue
1370 1371 1372 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1370 def minimum_value @minimum_value end |
#operator_options ⇒ Google::Apis::CloudsearchV1::IntegerOperatorOptions
Used to provide a search operator for integer properties. This is
optional. Search operators let users restrict the query to specific fields
relevant to the type of item being searched.
Corresponds to the JSON property operatorOptions
1377 1378 1379 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1377 def @operator_options end |
#ordered_ranking ⇒ String
Used to specify the ordered ranking for the integer. Can only be used if
isRepeatable
is false.
Corresponds to the JSON property orderedRanking
1384 1385 1386 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1384 def ordered_ranking @ordered_ranking end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1391 1392 1393 1394 1395 1396 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1391 def update!(**args) @maximum_value = args[:maximum_value] if args.key?(:maximum_value) @minimum_value = args[:minimum_value] if args.key?(:minimum_value) @operator_options = args[:operator_options] if args.key?(:operator_options) @ordered_ranking = args[:ordered_ranking] if args.key?(:ordered_ranking) end |