Class: Google::Apis::CloudsearchV1::IntegerPropertyOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::IntegerPropertyOptions
- 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
The options for integer properties.
Instance Attribute Summary collapse
-
#integer_faceting_options ⇒ Google::Apis::CloudsearchV1::IntegerFacetingOptions
Used to specify integer faceting options.
-
#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.
Constructor Details
#initialize(**args) ⇒ IntegerPropertyOptions
Returns a new instance of IntegerPropertyOptions.
12019 12020 12021 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12019 def initialize(**args) update!(**args) end |
Instance Attribute Details
#integer_faceting_options ⇒ Google::Apis::CloudsearchV1::IntegerFacetingOptions
Used to specify integer faceting options.
Corresponds to the JSON property integerFacetingOptions
11988 11989 11990 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11988 def @integer_faceting_options end |
#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
11996 11997 11998 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11996 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
12004 12005 12006 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12004 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
12011 12012 12013 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12011 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
12017 12018 12019 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12017 def ordered_ranking @ordered_ranking end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12024 12025 12026 12027 12028 12029 12030 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12024 def update!(**args) @integer_faceting_options = args[:integer_faceting_options] if args.key?(:integer_faceting_options) @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 |