1.0.0-beta25 (latest) 1.0.0-beta24

    [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](https://learn.microsoft.com/dotnet/api/system.object) \> SearchService.SearchServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse` | The response to send back to the client (wrapped by a task). |