public virtual SearchResponse SearchLite(SearchRequest request, CallOptions options)
Performs a search. Similar to the
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
method, but a lite version that allows API key for authentication, where
OAuth and IAM checks are not required.
Only public website search is supported by this method. If data stores and
engines not associated with public website search are specified, a
FAILED_PRECONDITION error is returned.
This method can be used for easy onboarding without having to implement an
authentication backend. However, it is strongly recommended to use
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
instead with required OAuth and IAM checks to provide better data security.
Performs a search. Similar to the
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
method, but a lite version that allows API key for authentication, where
OAuth and IAM checks are not required.
Only public website search is supported by this method. If data stores and
engines not associated with public website search are specified, a
FAILED_PRECONDITION error is returned.
This method can be used for easy onboarding without having to implement an
authentication backend. However, it is strongly recommended to use
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
instead with required OAuth and IAM checks to provide better data security.
public virtual AsyncUnaryCall<SearchResponse> SearchLiteAsync(SearchRequest request, CallOptions options)
Performs a search. Similar to the
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
method, but a lite version that allows API key for authentication, where
OAuth and IAM checks are not required.
Only public website search is supported by this method. If data stores and
engines not associated with public website search are specified, a
FAILED_PRECONDITION error is returned.
This method can be used for easy onboarding without having to implement an
authentication backend. However, it is strongly recommended to use
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
instead with required OAuth and IAM checks to provide better data security.
Performs a search. Similar to the
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
method, but a lite version that allows API key for authentication, where
OAuth and IAM checks are not required.
Only public website search is supported by this method. If data stores and
engines not associated with public website search are specified, a
FAILED_PRECONDITION error is returned.
This method can be used for easy onboarding without having to implement an
authentication backend. However, it is strongly recommended to use
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
instead with required OAuth and IAM checks to provide better data security.
[[["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-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eSearchService.SearchServiceClient\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSearchService.SearchServiceClient\u003c/code\u003e is 1.6.0, with older versions back to 1.0.0-beta06 also available, and it inherits from \u003ccode\u003eClientBase\u003c/code\u003e to manage remote calls.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows for the creation of a client for the SearchService, using a custom \u003ccode\u003eCallInvoker\u003c/code\u003e, a \u003ccode\u003eChannelBase\u003c/code\u003e, or a \u003ccode\u003eClientBaseConfiguration\u003c/code\u003e, and can be used to create an instance of \u003ccode\u003eLocations.LocationsClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearchService.SearchServiceClient\u003c/code\u003e offers several methods for performing searches, including \u003ccode\u003eSearch\u003c/code\u003e, \u003ccode\u003eSearchAsync\u003c/code\u003e, \u003ccode\u003eSearchLite\u003c/code\u003e, and \u003ccode\u003eSearchLiteAsync\u003c/code\u003e, with the "Lite" versions supporting API key authentication for public website searches, but the regular Search Methods are preferred for better security.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearch\u003c/code\u003e methods can be used with or without \u003ccode\u003eCallOptions\u003c/code\u003e, \u003ccode\u003eMetadata\u003c/code\u003e, \u003ccode\u003eDateTime\u003c/code\u003e (for deadlines), and \u003ccode\u003eCancellationToken\u003c/code\u003e (for cancellation), with the \u003ccode\u003eAsync\u003c/code\u003e versions returning \u003ccode\u003eAsyncUnaryCall\u003c/code\u003e objects and the others returning a \u003ccode\u003eSearchResponse\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class SearchService.SearchServiceClient (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.SearchService.SearchServiceClient)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient) \n\n public class SearchService.SearchServiceClient : ClientBase\u003cSearchService.SearchServiceClient\u003e\n\nReference documentation and code samples for the Discovery Engine v1 API class SearchService.SearchServiceClient.\n\nClient for SearchService \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \\\u003e [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[SearchService](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchService)[SearchServiceClient](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient) \\\u003e SearchService.SearchServiceClient \n\nInherited Members\n-----------------\n\n[ClientBase\\\u003cSearchService.SearchServiceClient\\\u003e.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) \n[ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \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### SearchServiceClient()\n\n protected SearchServiceClient()\n\nProtected parameterless constructor to allow creation of test doubles.\n\n### SearchServiceClient(CallInvoker)\n\n public SearchServiceClient(CallInvoker callInvoker)\n\nCreates a new client for SearchService that uses a custom `CallInvoker`.\n\n### SearchServiceClient(ChannelBase)\n\n public SearchServiceClient(ChannelBase channel)\n\nCreates a new client for SearchService\n\n### SearchServiceClient(ClientBaseConfiguration)\n\n protected SearchServiceClient(ClientBase.ClientBaseConfiguration configuration)\n\nProtected constructor to allow creation of configured clients.\n\nMethods\n-------\n\n### CreateLocationsClient()\n\n public virtual Locations.LocationsClient CreateLocationsClient()\n\nCreates a new instance of [Locations.LocationsClient](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html) using the same call invoker as\nthis client.\n\n### NewInstance(ClientBaseConfiguration)\n\n protected override SearchService.SearchServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)\n\nCreates a new instance of client from given `ClientBaseConfiguration`.\n\n**Overrides** \nGrpc.Core.ClientBase\\\u003cGoogle.Cloud.DiscoveryEngine.V1.SearchService.SearchServiceClient\\\u003e.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)\n\n### Search(SearchRequest, CallOptions)\n\n public virtual SearchResponse Search(SearchRequest request, CallOptions options)\n\nPerforms a search.\n\n### Search(SearchRequest, Metadata, DateTime?, CancellationToken)\n\n public virtual SearchResponse Search(SearchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)\n\nPerforms a search.\n\n### SearchAsync(SearchRequest, CallOptions)\n\n public virtual AsyncUnaryCall\u003cSearchResponse\u003e SearchAsync(SearchRequest request, CallOptions options)\n\nPerforms a search.\n\n### SearchAsync(SearchRequest, Metadata, DateTime?, CancellationToken)\n\n public virtual AsyncUnaryCall\u003cSearchResponse\u003e SearchAsync(SearchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)\n\nPerforms a search.\n\n### SearchLite(SearchRequest, CallOptions)\n\n public virtual SearchResponse SearchLite(SearchRequest request, CallOptions options)\n\nPerforms a search. Similar to the\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nmethod, but a lite version that allows API key for authentication, where\nOAuth and IAM checks are not required.\n\nOnly public website search is supported by this method. If data stores and\nengines not associated with public website search are specified, a\n`FAILED_PRECONDITION` error is returned.\n\nThis method can be used for easy onboarding without having to implement an\nauthentication backend. However, it is strongly recommended to use\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\ninstead with required OAuth and IAM checks to provide better data security.\n\n### SearchLite(SearchRequest, Metadata, DateTime?, CancellationToken)\n\n public virtual SearchResponse SearchLite(SearchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)\n\nPerforms a search. Similar to the\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nmethod, but a lite version that allows API key for authentication, where\nOAuth and IAM checks are not required.\n\nOnly public website search is supported by this method. If data stores and\nengines not associated with public website search are specified, a\n`FAILED_PRECONDITION` error is returned.\n\nThis method can be used for easy onboarding without having to implement an\nauthentication backend. However, it is strongly recommended to use\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\ninstead with required OAuth and IAM checks to provide better data security.\n\n### SearchLiteAsync(SearchRequest, CallOptions)\n\n public virtual AsyncUnaryCall\u003cSearchResponse\u003e SearchLiteAsync(SearchRequest request, CallOptions options)\n\nPerforms a search. Similar to the\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nmethod, but a lite version that allows API key for authentication, where\nOAuth and IAM checks are not required.\n\nOnly public website search is supported by this method. If data stores and\nengines not associated with public website search are specified, a\n`FAILED_PRECONDITION` error is returned.\n\nThis method can be used for easy onboarding without having to implement an\nauthentication backend. However, it is strongly recommended to use\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\ninstead with required OAuth and IAM checks to provide better data security.\n\n### SearchLiteAsync(SearchRequest, Metadata, DateTime?, CancellationToken)\n\n public virtual AsyncUnaryCall\u003cSearchResponse\u003e SearchLiteAsync(SearchRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)\n\nPerforms a search. Similar to the\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nmethod, but a lite version that allows API key for authentication, where\nOAuth and IAM checks are not required.\n\nOnly public website search is supported by this method. If data stores and\nengines not associated with public website search are specified, a\n`FAILED_PRECONDITION` error is returned.\n\nThis method can be used for easy onboarding without having to implement an\nauthentication backend. However, it is strongly recommended to use\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\ninstead with required OAuth and IAM checks to provide better data security."]]