Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/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) ⇒ GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
Returns a new instance of GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo.
7720 7721 7722 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7720 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
7711 7712 7713 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7711 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
7718 7719 7720 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7718 def pinned_result_count @pinned_result_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7725 7726 7727 7728 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7725 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 |