public sealed class SearchRequest.Types.SearchAsYouTypeSpec : IMessage<SearchRequest.Types.SearchAsYouTypeSpec>, IEquatable<SearchRequest.Types.SearchAsYouTypeSpec>, IDeepCloneable<SearchRequest.Types.SearchAsYouTypeSpec>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class SearchRequest.Types.SearchAsYouTypeSpec.
Specification for search as you type in search requests.
Implements
IMessageSearchRequestTypesSearchAsYouTypeSpec, IEquatableSearchRequestTypesSearchAsYouTypeSpec, IDeepCloneableSearchRequestTypesSearchAsYouTypeSpec, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
SearchAsYouTypeSpec()
public SearchAsYouTypeSpec()SearchAsYouTypeSpec(SearchAsYouTypeSpec)
public SearchAsYouTypeSpec(SearchRequest.Types.SearchAsYouTypeSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
SearchRequestTypesSearchAsYouTypeSpec |
Properties
Condition
public SearchRequest.Types.SearchAsYouTypeSpec.Types.Condition Condition { get; set; }The condition under which search as you type should occur. Default to [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
| Property Value | |
|---|---|
| Type | Description |
SearchRequestTypesSearchAsYouTypeSpecTypesCondition |
|
Fields
public RepeatedField<SearchRequest.Types.SearchAsYouTypeSpec.Types.Field> Fields { get; }Optional. The list of fields to be used for Search As You Type scoring.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldSearchRequestTypesSearchAsYouTypeSpecTypesField |
|
HasScoreThreshold
public bool HasScoreThreshold { get; }Gets whether the "score_threshold" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
ScoreThreshold
public double ScoreThreshold { get; set; }Optional. Search As You Type score threshold for filtering purpose.
We keep the result if score >= score_threshold.
| Property Value | |
|---|---|
| Type | Description |
double |
|