Optional. Specs defining DataStores to filter on in a search call and configurations for those data stores. This is only considered for Engines with multiple data stores.
↳ filter
string
Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an INVALID_ARGUMENT is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see Filter
getDataStoreSpecs
Optional. Specs defining
DataStores to filter on in
a search call and configurations for those data stores. This is only
considered for Engines with
multiple data stores.
Optional. Specs defining
DataStores to filter on in
a search call and configurations for those data stores. This is only
considered for Engines with
multiple data stores.
Optional. The filter syntax consists of an expression language for
constructing a predicate from one or more fields of the documents being
filtered. Filter expression is case-sensitive.
If this field is unrecognizable, an INVALID_ARGUMENT is returned.
Filtering in Vertex AI Search is done by mapping the LHS filter key to
a key property defined in the Vertex AI Search backend -- this mapping
is defined by the customer in their schema. For example a media
customer might have a field 'name' in their schema. In this case the
filter would look like this: filter --> name:'ANY("king kong")'
For more information about filtering including syntax and filter
operators, see
Filter
Returns
Type
Description
string
setFilter
Optional. The filter syntax consists of an expression language for
constructing a predicate from one or more fields of the documents being
filtered. Filter expression is case-sensitive.
If this field is unrecognizable, an INVALID_ARGUMENT is returned.
Filtering in Vertex AI Search is done by mapping the LHS filter key to
a key property defined in the Vertex AI Search backend -- this mapping
is defined by the customer in their schema. For example a media
customer might have a field 'name' in their schema. In this case the
filter would look like this: filter --> name:'ANY("king kong")'
For more information about filtering including syntax and filter
operators, see
Filter
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class VertexAiSearchSpec (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class VertexAiSearchSpec.\n\nSpecification of the Vertex AI Search tool.\n\nGenerated from protobuf message `google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1 \\\\ StreamAssistRequest \\\\ ToolsSpec\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDataStoreSpecs\n\nOptional. Specs defining\n[DataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore)s to filter on in\na search call and configurations for those data stores. This is only\nconsidered for [Engine](/php/docs/reference/cloud-discoveryengine/latest/V1.Engine)s with\nmultiple data stores.\n\n### setDataStoreSpecs\n\nOptional. Specs defining\n[DataStore](/php/docs/reference/cloud-discoveryengine/latest/V1.DataStore)s to filter on in\na search call and configurations for those data stores. This is only\nconsidered for [Engine](/php/docs/reference/cloud-discoveryengine/latest/V1.Engine)s with\nmultiple data stores.\n\n### getFilter\n\nOptional. The filter syntax consists of an expression language for\nconstructing a predicate from one or more fields of the documents being\nfiltered. Filter expression is case-sensitive.\n\nIf this field is unrecognizable, an `INVALID_ARGUMENT` is returned.\nFiltering in Vertex AI Search is done by mapping the LHS filter key to\na key property defined in the Vertex AI Search backend -- this mapping\nis defined by the customer in their schema. For example a media\ncustomer might have a field 'name' in their schema. In this case the\nfilter would look like this: filter --\\\u003e name:'ANY(\"king kong\")'\nFor more information about filtering including syntax and filter\noperators, see\n[Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)\n\n### setFilter\n\nOptional. The filter syntax consists of an expression language for\nconstructing a predicate from one or more fields of the documents being\nfiltered. Filter expression is case-sensitive.\n\nIf this field is unrecognizable, an `INVALID_ARGUMENT` is returned.\nFiltering in Vertex AI Search is done by mapping the LHS filter key to\na key property defined in the Vertex AI Search backend -- this mapping\nis defined by the customer in their schema. For example a media\ncustomer might have a field 'name' in their schema. In this case the\nfilter would look like this: filter --\\\u003e name:'ANY(\"king kong\")'\nFor more information about filtering including syntax and filter\noperators, see\n[Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)"]]