IIndexesOperations.CreateOrUpdateWithHttpMessagesAsync Method

Definition

Overloads

CreateOrUpdateWithHttpMessagesAsync(Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new search index or updates an index if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Index

CreateOrUpdateWithHttpMessagesAsync(String, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new search index or updates an index if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Index

CreateOrUpdateWithHttpMessagesAsync(Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new search index or updates an index if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Index

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Index>> CreateOrUpdateWithHttpMessagesAsync (Microsoft.Azure.Search.Models.Index index, bool? allowIndexDowntime = default, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : Microsoft.Azure.Search.Models.Index * Nullable<bool> * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Index>>
Public Function CreateOrUpdateWithHttpMessagesAsync (index As Index, Optional allowIndexDowntime As Nullable(Of Boolean) = Nothing, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Index))

Parameters

index
Index

The definition of the index to create or update.

allowIndexDowntime
Nullable<Boolean>

Allows new analyzers, tokenizers, token filters, or char filters to be added to an index by taking the index offline for at least a few seconds. This temporarily causes indexing and query requests to fail. Performance and write availability of the index can be impaired for several minutes after the index is updated, or longer for very large indexes.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation.

accessCondition
AccessCondition

Additional parameters for the operation.

customHeaders
Dictionary<String,List<String>>

Headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

A response object containing the response body and response headers.

Exceptions

Thrown when the operation returned an invalid status code.

Thrown when unable to deserialize the response.

Thrown when a required parameter is null.

Thrown when a required parameter is null

Applies to

CreateOrUpdateWithHttpMessagesAsync(String, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, Dictionary<String,List<String>>, CancellationToken)

Creates a new search index or updates an index if it already exists. https://docs.microsoft.com/rest/api/searchservice/Update-Index

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Index>> CreateOrUpdateWithHttpMessagesAsync (string indexName, Microsoft.Azure.Search.Models.Index index, bool? allowIndexDowntime = default, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * Microsoft.Azure.Search.Models.Index * Nullable<bool> * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Search.Models.Index>>
Public Function CreateOrUpdateWithHttpMessagesAsync (indexName As String, index As Index, Optional allowIndexDowntime As Nullable(Of Boolean) = Nothing, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Index))

Parameters

indexName
String

The definition of the index to create or update.

index
Index

The definition of the index to create or update.

allowIndexDowntime
Nullable<Boolean>

Allows new analyzers, tokenizers, token filters, or char filters to be added to an index by taking the index offline for at least a few seconds. This temporarily causes indexing and query requests to fail. Performance and write availability of the index can be impaired for several minutes after the index is updated, or longer for very large indexes.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation

accessCondition
AccessCondition

Additional parameters for the operation

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to