SearchIndexerClient.ResetDocumentsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resets specific documents in the datasource to be selectively re-ingested by the indexer.
public virtual System.Threading.Tasks.Task<Azure.Response> ResetDocumentsAsync (string indexerName, bool? overwrite = default, Azure.Search.Documents.Models.ResetDocumentOptions resetDocumentOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ResetDocumentsAsync : string * Nullable<bool> * Azure.Search.Documents.Models.ResetDocumentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.ResetDocumentsAsync : string * Nullable<bool> * Azure.Search.Documents.Models.ResetDocumentOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ResetDocumentsAsync (indexerName As String, Optional overwrite As Nullable(Of Boolean) = Nothing, Optional resetDocumentOptions As ResetDocumentOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- indexerName
- String
The name of the indexer to reset documents for.
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.