Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::SearchResponse::QueryExpansionInfo.
Information describing query expansion including whether expansion has occurred.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#expanded_query
def expanded_query() -> ::Boolean
Returns
- (::Boolean) — Bool describing whether query expansion has occurred.
#expanded_query=
def expanded_query=(value) -> ::Boolean
Parameter
- value (::Boolean) — Bool describing whether query expansion has occurred.
Returns
- (::Boolean) — Bool describing whether query expansion has occurred.
#pinned_result_count
def pinned_result_count() -> ::Integer
Returns
- (::Integer) — Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
#pinned_result_count=
def pinned_result_count=(value) -> ::Integer
Parameter
- value (::Integer) — Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
Returns
- (::Integer) — Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.