Vector Search v1 API - Class TextSearch (1.0.0-beta01)

public sealed class TextSearch : IMessage<TextSearch>, IEquatable<TextSearch>, IDeepCloneable<TextSearch>, IBufferMessage, IMessage

Reference documentation and code samples for the Vector Search v1 API class TextSearch.

Defines a text search operation.

Inheritance

object > TextSearch

Namespace

Google.Cloud.VectorSearch.V1

Assembly

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