Condividi tramite


IndexesGetClientExtensions.GetClient(IIndexesOperations, String) Method

Definition

Creates a new index client for querying and managing documents in a given index.

public static Microsoft.Azure.Search.ISearchIndexClient GetClient (this Microsoft.Azure.Search.IIndexesOperations operations, string indexName);
static member GetClient : Microsoft.Azure.Search.IIndexesOperations * string -> Microsoft.Azure.Search.ISearchIndexClient
<Extension()>
Public Function GetClient (operations As IIndexesOperations, indexName As String) As ISearchIndexClient

Parameters

operations
IIndexesOperations

The operation group for indexes of the Search service.

indexName
String

The name of the index.

Returns

A new SearchIndexClient instance.

Remarks

The new client is configured with full read-write access to the index. If you are only planning to use the client for query operations, we recommend directly creating a SearchIndexClient instance instead.

Applies to