Share via


IndexesOperationsExtensions.CreateOrUpdate Method

Definition

Overloads

CreateOrUpdate(IIndexesOperations, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition)

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

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

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

CreateOrUpdate(IIndexesOperations, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition)

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 Microsoft.Azure.Search.Models.Index CreateOrUpdate (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);
static member CreateOrUpdate : Microsoft.Azure.Search.IIndexesOperations * Microsoft.Azure.Search.Models.Index * Nullable<bool> * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition -> Microsoft.Azure.Search.Models.Index
<Extension()>
Public Function CreateOrUpdate (operations As IIndexesOperations, index As Index, Optional allowIndexDowntime As Nullable(Of Boolean) = Nothing, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing) As 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.

Returns

The index that was created or updated.

Applies to

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

Source:
IndexesOperationsExtensions.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 Microsoft.Azure.Search.Models.Index CreateOrUpdate (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);
static member CreateOrUpdate : Microsoft.Azure.Search.IIndexesOperations * string * Microsoft.Azure.Search.Models.Index * Nullable<bool> * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition -> Microsoft.Azure.Search.Models.Index
<Extension()>
Public Function CreateOrUpdate (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) As 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

Returns

Applies to