Discovery Engine v1beta API - Class SearchService.SearchServiceBase (1.0.0-beta18)

[BindServiceMethod(typeof(SearchService), "BindService")]
public abstract class SearchService.SearchServiceBase

Reference documentation and code samples for the Discovery Engine v1beta API class SearchService.SearchServiceBase.

Base class for server-side implementations of SearchService

Inheritance

object > SearchService.SearchServiceBase

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Methods

Search(SearchRequest, ServerCallContext)

public virtual Task<SearchResponse> Search(SearchRequest request, ServerCallContext context)

Performs a search.

Parameters
Name Description
request SearchRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSearchResponse

The response to send back to the client (wrapped by a task).

SearchLite(SearchRequest, ServerCallContext)

public virtual Task<SearchResponse> SearchLite(SearchRequest request, ServerCallContext context)

Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1beta.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.v1beta.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.

Parameters
Name Description
request SearchRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskSearchResponse

The response to send back to the client (wrapped by a task).