public sealed class TextQuery : IMessage<TextQuery>, IEquatable<TextQuery>, IDeepCloneable<TextQuery>, IBufferMessage, IMessageReference documentation and code samples for the Vector Search v1 API class TextQuery.
A leaf-level text query targeting one or more data fields. When multiple fields are specified, this is equivalent to combining per-field matches with an OR operator (i.e. the query matches if the text is found in any of the listed fields).
Implements
IMessageTextQuery, IEquatableTextQuery, IDeepCloneableTextQuery, IBufferMessage, IMessageNamespace
Google.Cloud.VectorSearch.V1Assembly
Google.Cloud.VectorSearch.V1.dll
Constructors
TextQuery()
public TextQuery()TextQuery(TextQuery)
public TextQuery(TextQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
TextQuery |
Properties
Fields
public RepeatedField<string> Fields { get; }Required. The data fields to search against.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
MatchType
public TextQuery.Types.MatchType MatchType { get; set; }Optional. The matching strategy to apply for this query. If unset, defaults
to TEXT.
| Property Value | |
|---|---|
| Type | Description |
TextQueryTypesMatchType |
|
QueryEnhancement
public QueryEnhancement QueryEnhancement { get; set; }Optional. The query enhancement settings to apply for this query.
| Property Value | |
|---|---|
| Type | Description |
QueryEnhancement |
|
Text
public string Text { get; set; }Required. The text to search for.
| Property Value | |
|---|---|
| Type | Description |
string |
|