Freigeben über


IndexesOperationsExtensions.CreateOrUpdate Methode

Definition

Überlädt

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

Erstellt einen neuen Suchindex oder aktualisiert einen Index, sofern er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Update-Index

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

Erstellt einen neuen Suchindex oder aktualisiert einen Index, sofern er bereits vorhanden ist. https://docs.microsoft.com/rest/api/searchservice/Update-Index

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

Quelle:
IndexesOperationsExtensions.Customization.cs

Erstellt einen neuen Suchindex oder aktualisiert einen Index, sofern er bereits vorhanden ist. 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

Parameter

operations
IIndexesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

index
Index

Die Definition des zu erstellenden oder zu aktualisierenden Indexes.

allowIndexDowntime
Nullable<Boolean>

Ermöglicht das Hinzufügen neuer Analysetools, Tokenizer, 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.

Gibt zurück

Der Index, der erstellt oder aktualisiert wurde.

Gilt für:

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

Quelle:
IndexesOperationsExtensions.cs

Erstellt einen neuen Suchindex oder aktualisiert einen Index, sofern er bereits vorhanden ist. 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

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.

allowIndexDowntime
Nullable<Boolean>

Ermöglicht das Hinzufügen neuer Analysetools, Tokenizer, 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

Gibt zurück

Gilt für: