public sealed class AnswerQueryRequest.Types.SearchSpec.Types.SearchParams : IMessage<AnswerQueryRequest.Types.SearchSpec.Types.SearchParams>, IEquatable<AnswerQueryRequest.Types.SearchSpec.Types.SearchParams>, IDeepCloneable<AnswerQueryRequest.Types.SearchSpec.Types.SearchParams>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class AnswerQueryRequest.Types.SearchSpec.Types.SearchParams.
public SearchRequest.Types.BoostSpec BoostSpec { get; set; }
Boost specification to boost certain documents in search results which
may affect the answer query response. For more information on boosting,
see Boosting
public RepeatedField<SearchRequest.Types.DataStoreSpec> DataStoreSpecs { get; }
Specs defining dataStores to filter on in a search call and
configurations for those dataStores. This is only considered for
engines with multiple dataStores use case. For single dataStore within
an engine, they should use the specs at the top level.
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. This will be used to filter
search results which may affect the Answer response.
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 customers 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
The order in which documents are returned. Documents can be ordered
by a field in an [Document][google.cloud.discoveryengine.v1.Document]
object. Leave it unset if ordered by relevance. order_by expression
is case-sensitive. For more information on ordering, see
Ordering
If this field is unrecognizable, an INVALID_ARGUMENT is returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAnswerQueryRequest.Types.SearchSpec.Types.SearchParams\u003c/code\u003e class is used for defining search parameters within the Discovery Engine v1 API, and is the latest version 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eSearchParams\u003c/code\u003e class include \u003ccode\u003eBoostSpec\u003c/code\u003e for boosting search results, \u003ccode\u003eDataStoreSpecs\u003c/code\u003e for filtering by data stores, \u003ccode\u003eFilter\u003c/code\u003e for detailed search result filtering, and \u003ccode\u003eMaxReturnResults\u003c/code\u003e to dictate the number of results.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOrderBy\u003c/code\u003e property is used to define the order of search result documents, while \u003ccode\u003eSearchResultMode\u003c/code\u003e dictates the mode in which the result is displayed.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides constructors for creating new instances, including one that clones another instance, and is found within the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e namespace, within the Google.Cloud.DiscoveryEngine.V1.dll assembly.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class AnswerQueryRequest.Types.SearchSpec.Types.SearchParams (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams) \n\n public sealed class AnswerQueryRequest.Types.SearchSpec.Types.SearchParams : IMessage\u003cAnswerQueryRequest.Types.SearchSpec.Types.SearchParams\u003e, IEquatable\u003cAnswerQueryRequest.Types.SearchSpec.Types.SearchParams\u003e, IDeepCloneable\u003cAnswerQueryRequest.Types.SearchSpec.Types.SearchParams\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class AnswerQueryRequest.Types.SearchSpec.Types.SearchParams.\n\nSearch parameters. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AnswerQueryRequest.Types.SearchSpec.Types.SearchParams \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnswerQueryRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types)[SearchSpec](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types)[SearchParams](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnswerQueryRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types)[SearchSpec](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types)[SearchParams](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnswerQueryRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types)[SearchSpec](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types)[SearchParams](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.AnswerQueryRequest.Types.SearchSpec.Types.SearchParams), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### SearchParams()\n\n public SearchParams()\n\n### SearchParams(SearchParams)\n\n public SearchParams(AnswerQueryRequest.Types.SearchSpec.Types.SearchParams other)\n\nProperties\n----------\n\n### BoostSpec\n\n public SearchRequest.Types.BoostSpec BoostSpec { get; set; }\n\nBoost specification to boost certain documents in search results which\nmay affect the answer query response. For more information on boosting,\nsee [Boosting](https://cloud.google.com/retail/docs/boosting#boost)\n\n### DataStoreSpecs\n\n public RepeatedField\u003cSearchRequest.Types.DataStoreSpec\u003e DataStoreSpecs { get; }\n\nSpecs defining dataStores to filter on in a search call and\nconfigurations for those dataStores. This is only considered for\nengines with multiple dataStores use case. For single dataStore within\nan engine, they should use the specs at the top level.\n\n### Filter\n\n public string Filter { get; set; }\n\nThe filter syntax consists of an expression language for constructing\na predicate from one or more fields of the documents being filtered.\nFilter expression is case-sensitive. This will be used to filter\nsearch results which may affect the Answer response.\n\nIf this field is unrecognizable, an `INVALID_ARGUMENT` is returned.\n\nFiltering in Vertex AI Search is done by mapping the LHS filter key\nto a key property defined in the Vertex AI Search backend -- this\nmapping is defined by the customer in their schema. For example a\nmedia customers might have a field 'name' in their schema. In this\ncase the filter would look like this: filter --\\\u003e name:'ANY(\"king\nkong\")'\n\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### MaxReturnResults\n\n public int MaxReturnResults { get; set; }\n\nNumber of search results to return.\nThe default value is 10.\n\n### OrderBy\n\n public string OrderBy { get; set; }\n\nThe order in which documents are returned. Documents can be ordered\nby a field in an \\[Document\\]\\[google.cloud.discoveryengine.v1.Document\\]\nobject. Leave it unset if ordered by relevance. `order_by` expression\nis case-sensitive. For more information on ordering, see\n[Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)\n\nIf this field is unrecognizable, an `INVALID_ARGUMENT` is returned.\n\n### SearchResultMode\n\n public SearchRequest.Types.ContentSearchSpec.Types.SearchResultMode SearchResultMode { get; set; }\n\nSpecifies the search result mode. If unspecified, the\nsearch result mode defaults to `DOCUMENTS`.\nSee [parse and chunk\ndocuments](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)"]]