See
[SearchRequest.query][google.cloud.discoveryengine.v1beta.SearchRequest.query]
for definition.
The value must be a UTF-8 encoded string with a length limit of 5,000
characters. Otherwise, an INVALID_ARGUMENT error is returned.
At least one of
[search_query][google.cloud.discoveryengine.v1beta.SearchInfo.search_query]
or
[PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category]
is required for search events. Other event types should not set this
field. Otherwise, an INVALID_ARGUMENT error 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\u003eSearchInfo\u003c/code\u003e class in the Discovery Engine v1beta API provides detailed search information and is the most recent version of the Beta API, version 1.0.0-beta18.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eOffset\u003c/code\u003e, \u003ccode\u003eOrderBy\u003c/code\u003e, and \u003ccode\u003eSearchQuery\u003c/code\u003e, which are used to manage pagination, product order, and the user's search query.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSearchInfo\u003c/code\u003e 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, ensuring it works within the Protobuf framework.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearchInfo\u003c/code\u003e class has specific constraints, such as \u003ccode\u003eOffset\u003c/code\u003e needing to be non-negative, \u003ccode\u003eOrderBy\u003c/code\u003e limited to 1,000 characters, and \u003ccode\u003eSearchQuery\u003c/code\u003e capped at 5,000 characters, with these fields only being valid for \u003ccode\u003esearch\u003c/code\u003e events.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class SearchInfo (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchInfo)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.SearchInfo) \n\n public sealed class SearchInfo : IMessage\u003cSearchInfo\u003e, IEquatable\u003cSearchInfo\u003e, IDeepCloneable\u003cSearchInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class SearchInfo.\n\nDetailed search information. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SearchInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchInfo), [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.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### SearchInfo()\n\n public SearchInfo()\n\n### SearchInfo(SearchInfo)\n\n public SearchInfo(SearchInfo other)\n\nProperties\n----------\n\n### HasOffset\n\n public bool HasOffset { get; }\n\nGets whether the \"offset\" field is set\n\n### Offset\n\n public int Offset { get; set; }\n\nAn integer that specifies the current offset for pagination (the 0-indexed\nstarting location, amongst the products deemed by the API as relevant).\n\nSee\n\\[SearchRequest.offset\\]\\[google.cloud.discoveryengine.v1beta.SearchRequest.offset\\]\nfor definition.\n\nIf this field is negative, an `INVALID_ARGUMENT` is returned.\n\nThis can only be set for `search` events. Other event types should not set\nthis field. Otherwise, an `INVALID_ARGUMENT` error is returned.\n\n### OrderBy\n\n public string OrderBy { get; set; }\n\nThe order in which products are returned, if applicable.\n\nSee\n\\[SearchRequest.order_by\\]\\[google.cloud.discoveryengine.v1beta.SearchRequest.order_by\\]\nfor definition and syntax.\n\nThe value must be a UTF-8 encoded string with a length limit of 1,000\ncharacters. Otherwise, an `INVALID_ARGUMENT` error is returned.\n\nThis can only be set for `search` events. Other event types should not set\nthis field. Otherwise, an `INVALID_ARGUMENT` error is returned.\n\n### SearchQuery\n\n public string SearchQuery { get; set; }\n\nThe user's search query.\n\nSee\n\\[SearchRequest.query\\]\\[google.cloud.discoveryengine.v1beta.SearchRequest.query\\]\nfor definition.\n\nThe value must be a UTF-8 encoded string with a length limit of 5,000\ncharacters. Otherwise, an `INVALID_ARGUMENT` error is returned.\n\nAt least one of\n\\[search_query\\]\\[google.cloud.discoveryengine.v1beta.SearchInfo.search_query\\]\nor\n\\[PageInfo.page_category\\]\\[google.cloud.discoveryengine.v1beta.PageInfo.page_category\\]\nis required for `search` events. Other event types should not set this\nfield. Otherwise, an `INVALID_ARGUMENT` error is returned."]]