Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo.
10621 10622 10623 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10621 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
10612 10613 10614 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10612 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
10619 10620 10621 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10619 def pinned_result_count @pinned_result_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10626 10627 10628 10629 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10626 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 |