Class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
Information describing query expansion including whether expansion has occurred.
Instance Attribute Summary collapse
-
#expanded_query ⇒ Boolean
(also: #expanded_query?)
Bool describing whether query expansion has occurred.
-
#pinned_result_count ⇒ Fixnum
Number of pinned results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2SearchResponseQueryExpansionInfo
constructor
A new instance of GoogleCloudRetailV2SearchResponseQueryExpansionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2SearchResponseQueryExpansionInfo
Returns a new instance of GoogleCloudRetailV2SearchResponseQueryExpansionInfo.
4524 4525 4526 |
# File 'lib/google/apis/retail_v2/classes.rb', line 4524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expanded_query ⇒ Boolean Also known as: expanded_query?
Bool describing whether query expansion has occurred.
Corresponds to the JSON property expandedQuery
4515 4516 4517 |
# File 'lib/google/apis/retail_v2/classes.rb', line 4515 def @expanded_query end |
#pinned_result_count ⇒ Fixnum
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
4522 4523 4524 |
# File 'lib/google/apis/retail_v2/classes.rb', line 4522 def pinned_result_count @pinned_result_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4529 4530 4531 4532 |
# File 'lib/google/apis/retail_v2/classes.rb', line 4529 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 |