SearchClientBuilderExtensions.AddSearchIndexerClient Method

Definition

Overloads

AddSearchIndexerClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a SearchIndexerClient instance with connection options loaded from the provided configuration instance.

AddSearchIndexerClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registers a SearchIndexerClient instance with the provided endpoint and credential.

AddSearchIndexerClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Source:
SearchClientBuilderExtensions.cs
Source:
SearchClientBuilderExtensions.cs

Registers a SearchIndexerClient instance with connection options loaded from the provided configuration instance.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexerClient,Azure.Search.Documents.SearchClientOptions> AddSearchIndexerClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddSearchIndexerClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexerClient, Azure.Search.Documents.SearchClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddSearchIndexerClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of SearchIndexerClient, SearchClientOptions)

Type Parameters

TBuilder

Type of the client factory builder.

TConfiguration

Type of the configuration.

Parameters

builder
TBuilder

The client factory builder.

configuration
TConfiguration

The client configuration.

Returns

An Azure client builder.

Applies to

AddSearchIndexerClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Source:
SearchClientBuilderExtensions.cs
Source:
SearchClientBuilderExtensions.cs

Registers a SearchIndexerClient instance with the provided endpoint and credential.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexerClient,Azure.Search.Documents.SearchClientOptions> AddSearchIndexerClient<TBuilder> (this TBuilder builder, Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddSearchIndexerClient : 'Builder * Uri * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.Search.Documents.Indexes.SearchIndexerClient, Azure.Search.Documents.SearchClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddSearchIndexerClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, credential As AzureKeyCredential) As IAzureClientBuilder(Of SearchIndexerClient, SearchClientOptions)

Type Parameters

TBuilder

Type of the client factory builder.

Parameters

builder
TBuilder

The client factory builder.

endpoint
Uri

Required. The URI endpoint of the Search Service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS.

credential
AzureKeyCredential

Required. The API key credential used to authenticate requests against the search service. You need to use an admin key to modify the documents in a Search Index. See Create and manage api-keys for an Azure Cognitive Search service for more information about API keys in Azure Cognitive Search.

Returns

An Azure client builder.

Applies to