public sealed class TextSearch : IMessage<TextSearch>, IEquatable<TextSearch>, IDeepCloneable<TextSearch>, IBufferMessage, IMessageReference documentation and code samples for the Vector Search v1 API class TextSearch.
Defines a text search operation.
Implements
IMessageTextSearch, IEquatableTextSearch, IDeepCloneableTextSearch, IBufferMessage, IMessageNamespace
Google.Cloud.VectorSearch.V1Assembly
Google.Cloud.VectorSearch.V1.dll
Constructors
TextSearch()
public TextSearch()TextSearch(TextSearch)
public TextSearch(TextSearch other)| Parameter | |
|---|---|
| Name | Description |
other |
TextSearch |
Properties
DataFieldNames
public RepeatedField<string> DataFieldNames { get; }Required. The data field names to search.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
Filter
public Struct Filter { get; set; }Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}},
represented as a google.protobuf.Struct.
| Property Value | |
|---|---|
| Type | Description |
Struct |
|
HasTopK
public bool HasTopK { get; }Gets whether the "top_k" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
OutputFields
public OutputFields OutputFields { get; set; }Optional. The fields to return in the search results.
| Property Value | |
|---|---|
| Type | Description |
OutputFields |
|
SearchText
public string SearchText { get; set; }Required. The query text.
| Property Value | |
|---|---|
| Type | Description |
string |
|
TopK
public int TopK { get; set; }Optional. The number of results to return.
| Property Value | |
|---|---|
| Type | Description |
int |
|