Performs text search in a Vertex AI Vector Search 2.0 Collection.
Text search performs traditional keyword/full-text search on data fields without using embeddings.
Note: Text search does not support filters. Use semantic_search or vector_search if you need filtering.
text_search(
project_id: str,
region: str,
collection_id: str,
search_text: str,
data_field_names: List[str],
num_neighbors: int,
credentials: Optional[Credentials] = None
) -> List[dict[str, Any]]| Name | Type | Description |
|---|---|---|
project_id* | str | The GCP project ID. |
region* | str | The GCP region. |
collection_id* | str | The collection ID. |
search_text* | str | Keyword search query text. |
data_field_names* | List[str] | List of data field names to search in (e.g., ["title", "description"]). |
num_neighbors* | int | Number of neighbors to return. |
credentials | Optional[Credentials] | Default: NoneOptional credentials to use. |