public sealed class SearchRequest.Types.QueryExpansionSpec : IMessage<SearchRequest.Types.QueryExpansionSpec>, IEquatable<SearchRequest.Types.QueryExpansionSpec>, IDeepCloneable<SearchRequest.Types.QueryExpansionSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class SearchRequest.Types.QueryExpansionSpec.
Specification to determine under which conditions query expansion should
occur.
public SearchRequest.Types.QueryExpansionSpec.Types.Condition Condition { get; set; }
The condition under which query expansion should occur. Default to
[Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
Whether to pin unexpanded results. If this field is set to true,
unexpanded products are always at the top of the search results, followed
by the expanded results.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This documentation details the `SearchRequest.Types.QueryExpansionSpec` class within the Google Cloud Discovery Engine v1beta API, which defines the conditions for query expansion during searches."],["The `QueryExpansionSpec` class inherits from `object` and implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, offering functionality for message manipulation, equality checks, deep cloning, and buffer operations."],["It provides two constructors, a default `QueryExpansionSpec()` and one that accepts another `QueryExpansionSpec` instance, allowing for object creation and duplication."],["The `Condition` property determines when query expansion occurs, defaulting to disabled, while the `PinUnexpandedResults` property controls whether unexpanded results are prioritized in the search results."],["This class resides within the `Google.Cloud.DiscoveryEngine.V1Beta` namespace and is contained in the `Google.Cloud.DiscoveryEngine.V1Beta.dll` assembly."]]],[]]