Discovery Engine v1 API - Class SearchRequest.Types.SearchAsYouTypeSpec.Types.Field (1.16.0)

public sealed class SearchRequest.Types.SearchAsYouTypeSpec.Types.Field : IMessage<SearchRequest.Types.SearchAsYouTypeSpec.Types.Field>, IEquatable<SearchRequest.Types.SearchAsYouTypeSpec.Types.Field>, IDeepCloneable<SearchRequest.Types.SearchAsYouTypeSpec.Types.Field>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class SearchRequest.Types.SearchAsYouTypeSpec.Types.Field.

A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.

Inheritance

object > SearchRequest.Types.SearchAsYouTypeSpec.Types.Field

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

Field()

public Field()

Field(Field)

public Field(SearchRequest.Types.SearchAsYouTypeSpec.Types.Field other)
Parameter
Name Description
other SearchRequestTypesSearchAsYouTypeSpecTypesField

Properties

HasWeight

public bool HasWeight { get; }

Gets whether the "weight" field is set

Property Value
Type Description
bool

Key

public string Key { get; set; }

Required. A field key that has been indexed for Search As You Type.

Property Value
Type Description
string

Weight

public double Weight { get; set; }

Optional. Weight for scores from this field. Defaults to 1.0 if not specified.

Property Value
Type Description
double