See
[SearchRequest.query][google.cloud.discoveryengine.v1.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.v1.SearchInfo.search_query] or
[PageInfo.page_category][google.cloud.discoveryengine.v1.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\u003eThis page provides reference documentation for the \u003ccode\u003eSearchInfo\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearchInfo\u003c/code\u003e class is used to store detailed search information and implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAvailable properties within the \u003ccode\u003eSearchInfo\u003c/code\u003e class include \u003ccode\u003eOffset\u003c/code\u003e, \u003ccode\u003eOrderBy\u003c/code\u003e, and \u003ccode\u003eSearchQuery\u003c/code\u003e, which are used for pagination, ordering of search results, and the user's search query, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eSearchInfo\u003c/code\u003e available is 1.6.0, with previous versions listed down to 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSearchInfo\u003c/code\u003e is used for \u003ccode\u003esearch\u003c/code\u003e events and not other events, otherwise it will result in an \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e error, while also using certain methods inherited from the \u003ccode\u003eobject\u003c/code\u003e base class, like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class SearchInfo (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.SearchInfo)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.SearchInfo)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.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 v1 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.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchInfo](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.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.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### 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.v1.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.v1.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.v1.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.v1.SearchInfo.search_query\\] or\n\\[PageInfo.page_category\\]\\[google.cloud.discoveryengine.v1.PageInfo.page_category\\]\nis required for `search` events. Other event types should not set this\nfield. Otherwise, an `INVALID_ARGUMENT` error is returned."]]