Reference documentation and code samples for the Google Cloud Vector Search V1 Client class TextSearch.
Defines a text search operation.
Generated from protobuf message google.cloud.vectorsearch.v1.TextSearch
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ search_text
string
Required. The query text.
↳ data_field_names
array
Required. The data field names to search.
↳ output_fields
↳ top_k
int
Optional. The number of results to return.
↳ filter
Google\Protobuf\Struct
Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}
, represented as a google.protobuf.Struct
.
getSearchText
Required. The query text.
string
setSearchText
Required. The query text.
var
string
$this
getDataFieldNames
Required. The data field names to search.
setDataFieldNames
Required. The data field names to search.
var
string[]
$this
getOutputFields
Optional. The fields to return in the search results.
hasOutputFields
clearOutputFields
setOutputFields
Optional. The fields to return in the search results.
$this
getTopK
Optional. The number of results to return.
int
hasTopK
clearTopK
setTopK
Optional. The number of results to return.
var
int
$this
getFilter
Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}
,
represented as a google.protobuf.Struct
.
hasFilter
clearFilter
setFilter
Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}
,
represented as a google.protobuf.Struct
.
$this

