Interface SearchServiceGrpc.AsyncService (0.50.0)

public static interface SearchServiceGrpc.AsyncService

Service for search.

Methods

search(SearchRequest request, StreamObserver<SearchResponse> responseObserver)

public default void search(SearchRequest request, StreamObserver<SearchResponse> responseObserver)

Performs a search.

Parameters
Name Description
request SearchRequest
responseObserver io.grpc.stub.StreamObserver<SearchResponse>

searchLite(SearchRequest request, StreamObserver<SearchResponse> responseObserver)

public default void searchLite(SearchRequest request, StreamObserver<SearchResponse> responseObserver)

Performs a search. Similar to the 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 instead with required OAuth and IAM checks to provide better data security.

Parameters
Name Description
request SearchRequest
responseObserver io.grpc.stub.StreamObserver<SearchResponse>