Sdílet prostřednictvím


SearchIndexerClient.ResetDocuments Method

Definition

Resets specific documents in the datasource to be selectively re-ingested by the indexer.

public virtual Azure.Response ResetDocuments (string indexerName, bool? overwrite = default, Azure.Search.Documents.Models.ResetDocumentOptions resetDocumentOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ResetDocuments : string * Nullable<bool> * Azure.Search.Documents.Models.ResetDocumentOptions * System.Threading.CancellationToken -> Azure.Response
override this.ResetDocuments : string * Nullable<bool> * Azure.Search.Documents.Models.ResetDocumentOptions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function ResetDocuments (indexerName As String, Optional overwrite As Nullable(Of Boolean) = Nothing, Optional resetDocumentOptions As ResetDocumentOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

indexerName
String

The name of the indexer to reset documents for.

overwrite
Nullable<Boolean>

If false, keys or ids will be appended to existing ones. If true, only the keys or ids in this payload will be queued to be re-ingested.

resetDocumentOptions
ResetDocumentOptions

The reset options to use.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be canceled.

Returns

A Task<TResult> representing the result of the asynchronous operation.

Applies to