Condividi tramite


IndexesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Overloads

CreateOrUpdateAsync(IIndexesOperations, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken)

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

CreateOrUpdateAsync(IIndexesOperations, String, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken)

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

CreateOrUpdateAsync(IIndexesOperations, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken)

Source:
IndexesOperationsExtensions.Customization.cs

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

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Index> CreateOrUpdateAsync (this Microsoft.Azure.Search.IIndexesOperations operations, Microsoft.Azure.Search.Models.Index index, bool? allowIndexDowntime = default, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.IIndexesOperations * Microsoft.Azure.Search.Models.Index * Nullable<bool> * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Index>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IIndexesOperations, index As Index, Optional allowIndexDowntime As Nullable(Of Boolean) = Nothing, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Index)

Parameters

operations
IIndexesOperations

The operations group for this extension method.

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.

cancellationToken
CancellationToken

The cancellation token.

Returns

The index that was created or updated.

Applies to

CreateOrUpdateAsync(IIndexesOperations, String, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken)

Source:
IndexesOperationsExtensions.Customization.cs

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

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Index> CreateOrUpdateAsync (this Microsoft.Azure.Search.IIndexesOperations operations, 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.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Search.IIndexesOperations * string * Microsoft.Azure.Search.Models.Index * Nullable<bool> * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.Index>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IIndexesOperations, indexName As String, index As Index, Optional allowIndexDowntime As Nullable(Of Boolean) = Nothing, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Index)

Parameters

operations
IIndexesOperations

The operations group for this extension method.

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to