class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo

Information describing query expansion including whether expansion has occurred.

Attributes

expanded_query[RW]

Bool describing whether query expansion has occurred. Corresponds to the JSON property `expandedQuery` @return [Boolean]

expanded_query?[RW]

Bool describing whether query expansion has occurred. Corresponds to the JSON property `expandedQuery` @return [Boolean]

pinned_result_count[RW]

Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true. Corresponds to the JSON property `pinnedResultCount` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/retail_v2alpha/classes.rb, line 3422
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_v2alpha/classes.rb, line 3427
def update!(**args)
  @expanded_query = args[:expanded_query] if args.key?(:expanded_query)
  @pinned_result_count = args[:pinned_result_count] if args.key?(:pinned_result_count)
end