public override PagedEnumerable<SearchResponse, SearchResponse.Types.SearchResult> SearchLite(SearchRequest request, CallSettings callSettings = null)
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 override PagedAsyncEnumerable<SearchResponse, SearchResponse.Types.SearchResult> SearchLiteAsync(SearchRequest request, CallSettings callSettings = null)
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\u003eThe \u003ccode\u003eSearchServiceClientImpl\u003c/code\u003e class is a client wrapper implementation for the Discovery Engine v1 API's \u003ccode\u003eSearchService\u003c/code\u003e, designed for ease of use.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eSearchServiceClient\u003c/code\u003e and ultimately \u003ccode\u003eobject\u003c/code\u003e, providing access to inherited members like \u003ccode\u003eDefaultEndpoint\u003c/code\u003e, \u003ccode\u003eDefaultScopes\u003c/code\u003e, and methods for creating and managing clients.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods for both synchronous and asynchronous search operations, including \u003ccode\u003eSearch\u003c/code\u003e and \u003ccode\u003eSearchAsync\u003c/code\u003e, and lighter authentication options through \u003ccode\u003eSearchLite\u003c/code\u003e and \u003ccode\u003eSearchLiteAsync\u003c/code\u003e, which are ideal for public website searches without OAuth or IAM.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSearchServiceClientImpl\u003c/code\u003e is 1.6.0, with several prior versions also available including versions 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0 and 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003eThis client supports customization via \u003ccode\u003eSearchServiceSettings\u003c/code\u003e and optional logging through \u003ccode\u003eILogger\u003c/code\u003e, and it utilizes a gRPC client for underlying operations, which can be accessed with the property \u003ccode\u003eGrpcClient\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class SearchServiceClientImpl (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.SearchServiceClientImpl)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.SearchServiceClientImpl) \n\n public sealed class SearchServiceClientImpl : SearchServiceClient\n\nReference documentation and code samples for the Discovery Engine v1 API class SearchServiceClientImpl.\n\nSearchService client wrapper implementation, for convenient use. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e [SearchServiceClient](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient) \\\u003e SearchServiceClientImpl \n\nInherited Members\n-----------------\n\n[SearchServiceClient.DefaultEndpoint](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_DefaultEndpoint) \n[SearchServiceClient.DefaultScopes](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_DefaultScopes) \n[SearchServiceClient.ServiceMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_ServiceMetadata) \n[SearchServiceClient.CreateAsync(CancellationToken)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_CreateAsync_System_Threading_CancellationToken_) \n[SearchServiceClient.Create()](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_Create) \n[SearchServiceClient.ShutdownDefaultChannelsAsync()](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_ShutdownDefaultChannelsAsync) \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\nRemarks\n-------\n\nService for search.\n\nConstructors\n------------\n\n### SearchServiceClientImpl(SearchServiceClient, SearchServiceSettings, ILogger)\n\n public SearchServiceClientImpl(SearchService.SearchServiceClient grpcClient, SearchServiceSettings settings, ILogger logger)\n\nConstructs a client wrapper for the SearchService service, with the specified gRPC client and settings.\n\nProperties\n----------\n\n### GrpcClient\n\n public override SearchService.SearchServiceClient GrpcClient { get; }\n\nThe underlying gRPC SearchService client\n\n**Overrides** \n[SearchServiceClient.GrpcClient](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_GrpcClient)\n\n### LocationsClient\n\n public override LocationsClient LocationsClient { get; }\n\nThe [LocationsClient](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.\n\n**Overrides** \n[SearchServiceClient.LocationsClient](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_LocationsClient)\n\nMethods\n-------\n\n### Search(SearchRequest, CallSettings)\n\n public override PagedEnumerable\u003cSearchResponse, SearchResponse.Types.SearchResult\u003e Search(SearchRequest request, CallSettings callSettings = null)\n\nPerforms a search.\n\n**Overrides** \n[SearchServiceClient.Search(SearchRequest, CallSettings)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_Search_Google_Cloud_DiscoveryEngine_V1_SearchRequest_Google_Api_Gax_Grpc_CallSettings_)\n\n### SearchAsync(SearchRequest, CallSettings)\n\n public override PagedAsyncEnumerable\u003cSearchResponse, SearchResponse.Types.SearchResult\u003e SearchAsync(SearchRequest request, CallSettings callSettings = null)\n\nPerforms a search.\n\n**Overrides** \n[SearchServiceClient.SearchAsync(SearchRequest, CallSettings)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_SearchAsync_Google_Cloud_DiscoveryEngine_V1_SearchRequest_Google_Api_Gax_Grpc_CallSettings_)\n\n### SearchLite(SearchRequest, CallSettings)\n\n public override PagedEnumerable\u003cSearchResponse, SearchResponse.Types.SearchResult\u003e SearchLite(SearchRequest request, CallSettings callSettings = null)\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**Overrides** \n[SearchServiceClient.SearchLite(SearchRequest, CallSettings)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_SearchLite_Google_Cloud_DiscoveryEngine_V1_SearchRequest_Google_Api_Gax_Grpc_CallSettings_)\n\n### SearchLiteAsync(SearchRequest, CallSettings)\n\n public override PagedAsyncEnumerable\u003cSearchResponse, SearchResponse.Types.SearchResult\u003e SearchLiteAsync(SearchRequest request, CallSettings callSettings = null)\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**Overrides** \n[SearchServiceClient.SearchLiteAsync(SearchRequest, CallSettings)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchServiceClient#Google_Cloud_DiscoveryEngine_V1_SearchServiceClient_SearchLiteAsync_Google_Cloud_DiscoveryEngine_V1_SearchRequest_Google_Api_Gax_Grpc_CallSettings_)"]]