Reference documentation and code samples for the Google Cloud Vector Search V1 Client class Search.
A single search request within a batch operation.
Generated from protobuf message google.cloud.vectorsearch.v1.Search
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ vector_search |
VectorSearch
A vector-based search. |
↳ semantic_search |
SemanticSearch
A semantic search. |
↳ text_search |
TextSearch
A text search operation. |
getVectorSearch
A vector-based search.
| Returns | |
|---|---|
| Type | Description |
VectorSearch|null |
|
hasVectorSearch
setVectorSearch
A vector-based search.
| Parameter | |
|---|---|
| Name | Description |
var |
VectorSearch
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSemanticSearch
A semantic search.
| Returns | |
|---|---|
| Type | Description |
SemanticSearch|null |
|
hasSemanticSearch
setSemanticSearch
A semantic search.
| Parameter | |
|---|---|
| Name | Description |
var |
SemanticSearch
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTextSearch
A text search operation.
| Returns | |
|---|---|
| Type | Description |
TextSearch|null |
|
hasTextSearch
setTextSearch
A text search operation.
| Parameter | |
|---|---|
| Name | Description |
var |
TextSearch
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSearchType
| Returns | |
|---|---|
| Type | Description |
string |
|