class Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec

Specification to determine under which conditions query expansion should occur.

Attributes

condition[RW]

The condition under which query expansion should occur. Default to Condition. DISABLED. Corresponds to the JSON property `condition` @return [String]

pin_unexpanded_results[RW]

Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. Corresponds to the JSON property `pinUnexpandedResults` @return [Boolean]

pin_unexpanded_results?[RW]

Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results. Corresponds to the JSON property `pinUnexpandedResults` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/retail_v2/classes.rb, line 2738
def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @pin_unexpanded_results = args[:pin_unexpanded_results] if args.key?(:pin_unexpanded_results)
end