Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec.
Specification to determine under which conditions query expansion should occur.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#condition
def condition() -> ::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec::Condition
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec::Condition) — The condition under which query expansion should occur. Default to Condition.DISABLED.
#condition=
def condition=(value) -> ::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec::Condition
Parameter
- value (::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec::Condition) — The condition under which query expansion should occur. Default to Condition.DISABLED.
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec::Condition) — The condition under which query expansion should occur. Default to Condition.DISABLED.
#pin_unexpanded_results
def pin_unexpanded_results() -> ::Boolean
Returns
- (::Boolean) — Whether to pin unexpanded results. The default value is false. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.
#pin_unexpanded_results=
def pin_unexpanded_results=(value) -> ::Boolean
Parameter
- value (::Boolean) — Whether to pin unexpanded results. The default value is false. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.
Returns
- (::Boolean) — Whether to pin unexpanded results. The default value is false. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.