Discovery Engine v1 API - Class SearchRequest.Types.QueryExpansionSpec (1.0.0-beta02)

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 v1 API class SearchRequest.Types.QueryExpansionSpec.

Specification to determine under which conditions query expansion should occur.

Inheritance

object > SearchRequest.Types.QueryExpansionSpec

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

QueryExpansionSpec()

public QueryExpansionSpec()

QueryExpansionSpec(QueryExpansionSpec)

public QueryExpansionSpec(SearchRequest.Types.QueryExpansionSpec other)
Parameter
NameDescription
otherSearchRequestTypesQueryExpansionSpec

Properties

Condition

public SearchRequest.Types.QueryExpansionSpec.Types.Condition Condition { get; set; }

The condition under which query expansion should occur. Default to [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED].

Property Value
TypeDescription
SearchRequestTypesQueryExpansionSpecTypesCondition

PinUnexpandedResults

public bool PinUnexpandedResults { get; set; }

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.

Property Value
TypeDescription
bool