SearchIndexerClient.ResetDocuments 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 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.
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.