Share via


IIndexesOperations.CreateOrUpdateWithHttpMessagesAsync メソッド

定義

オーバーロード

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

新しい検索インデックスを作成するか、インデックスが既に存在する場合は更新します。 https://docs.microsoft.com/rest/api/searchservice/Update-Index

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

新しい検索インデックスを作成するか、インデックスが既に存在する場合は更新します。 https://docs.microsoft.com/rest/api/searchservice/Update-Index

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

新しい検索インデックスを作成するか、インデックスが既に存在する場合は更新します。 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))

パラメーター

index
Index

作成または更新するインデックスの定義。

allowIndexDowntime
Nullable<Boolean>

インデックスを少なくとも数秒間オフラインにすることで、新しいアナライザー、トークナイザー、トークン フィルター、または文字フィルターをインデックスに追加できるようにします。 これにより、インデックス作成とクエリ要求が一時的に失敗します。 インデックスを更新すると、インデックスのパフォーマンスと書き込み可用性が数分にわたり損なわれる場合があります。インデックスが非常に大きい場合、その時間も長くなります。

searchRequestOptions
SearchRequestOptions

操作の追加パラメーター。

accessCondition
AccessCondition

操作の追加パラメーター。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

応答本文と応答ヘッダーを含む応答オブジェクト。

例外

操作が無効な状態コードを返したときにスローされます。

応答を逆シリアル化できない場合にスローされます。

必須パラメーターが null の場合にスローされます。

必須パラメーターが null の場合にスローされます

適用対象

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

新しい検索インデックスを作成するか、インデックスが既に存在する場合は更新します。 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))

パラメーター

indexName
String

作成または更新するインデックスの定義。

index
Index

作成または更新するインデックスの定義。

allowIndexDowntime
Nullable<Boolean>

インデックスを少なくとも数秒間オフラインにすることで、新しいアナライザー、トークナイザー、トークン フィルター、または文字フィルターをインデックスに追加できるようにします。 これにより、インデックス作成とクエリ要求が一時的に失敗します。 インデックスを更新すると、インデックスのパフォーマンスと書き込み可用性が数分にわたり損なわれる場合があります。インデックスが非常に大きい場合、その時間も長くなります。

searchRequestOptions
SearchRequestOptions

操作の追加パラメーター

accessCondition
AccessCondition

操作の追加パラメーター

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象