class Google::Apis::CloudsearchV1::IntegerPropertyOptions

Options for integer properties.

Attributes

maximum_value[RW]

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` @return [Fixnum]

minimum_value[RW]

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` @return [Fixnum]

operator_options[RW]

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` @return [Google::Apis::CloudsearchV1::IntegerOperatorOptions]

ordered_ranking[RW]

Used to specify the ordered ranking for the integer. Can only be used if isRepeatable is false. Corresponds to the JSON property `orderedRanking` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1696
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 1701
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