IndexesOperationsExtensions.CreateOrUpdateAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
CreateOrUpdateAsync(IIndexesOperations, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken) |
Erstellt einen neuen Suchindex oder aktualisiert einen Index, falls er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Update-Index |
CreateOrUpdateAsync(IIndexesOperations, String, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken) |
Erstellt einen neuen Suchindex oder aktualisiert einen Index, falls er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Update-Index |
CreateOrUpdateAsync(IIndexesOperations, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken)
Erstellt einen neuen Suchindex oder aktualisiert einen Index, falls er bereits vorhanden ist. 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)
Parameter
- operations
- IIndexesOperations
Die Vorgangsgruppe für diese Erweiterungsmethode.
- index
- Index
Die Definition des zu erstellenden oder zu aktualisierenden Indexes.
Ermöglicht das Hinzufügen neuer Analysetools, Tokenisierer, Tokenfilter oder Zeichenfilter zu einem Index, indem der Index für mindestens einige Sekunden offline geschaltet wird. Dies führt vorübergehend zu Fehlern bei Indizierungs- und Abfrageanforderungen. Leistung und Schreibverfügbarkeit des Indexes können nach der Indexaktualisierung mehrere Minuten lang eingeschränkt sein, bei sehr großen Indizes auch länger.
- searchRequestOptions
- SearchRequestOptions
Zusätzliche Parameter für den Vorgang.
- accessCondition
- AccessCondition
Zusätzliche Parameter für den Vorgang.
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Der Index, der erstellt oder aktualisiert wurde.
Gilt für:
CreateOrUpdateAsync(IIndexesOperations, String, Index, Nullable<Boolean>, SearchRequestOptions, AccessCondition, CancellationToken)
Erstellt einen neuen Suchindex oder aktualisiert einen Index, falls er bereits vorhanden ist. 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)
Parameter
- operations
- IIndexesOperations
Die Vorgangsgruppe für diese Erweiterungsmethode.
- indexName
- String
Die Definition des zu erstellenden oder zu aktualisierenden Indexes.
- index
- Index
Die Definition des zu erstellenden oder zu aktualisierenden Indexes.
Ermöglicht das Hinzufügen neuer Analysetools, Tokenisierer, Tokenfilter oder Zeichenfilter zu einem Index, indem der Index für mindestens einige Sekunden offline geschaltet wird. Dies führt vorübergehend zu Fehlern bei Indizierungs- und Abfrageanforderungen. Leistung und Schreibverfügbarkeit des Indexes können nach der Indexaktualisierung mehrere Minuten lang eingeschränkt sein, bei sehr großen Indizes auch länger.
- searchRequestOptions
- SearchRequestOptions
Zusätzliche Parameter für den Vorgang
- accessCondition
- AccessCondition
Zusätzliche Parameter für den Vorgang
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Gilt für:
Azure SDK for .NET