IndexBatchException.FindFailedActionsToRetry Method

Definition

Overloads

FindFailedActionsToRetry(IndexBatch<Document>, String)

Finds all index actions in the given batch that failed and need to be retried, and returns them in a new batch.

FindFailedActionsToRetry<T>(IndexBatch<T>, Func<T,String>)

Finds all index actions in the given batch that failed and need to be retried, and returns them in a new batch.

FindFailedActionsToRetry(IndexBatch<Document>, String)

Source:
IndexBatchException.cs

Finds all index actions in the given batch that failed and need to be retried, and returns them in a new batch.

public Microsoft.Azure.Search.Models.IndexBatch<Microsoft.Azure.Search.Models.Document> FindFailedActionsToRetry (Microsoft.Azure.Search.Models.IndexBatch<Microsoft.Azure.Search.Models.Document> originalBatch, string keyFieldName);
member this.FindFailedActionsToRetry : Microsoft.Azure.Search.Models.IndexBatch<Microsoft.Azure.Search.Models.Document> * string -> Microsoft.Azure.Search.Models.IndexBatch<Microsoft.Azure.Search.Models.Document>
Public Function FindFailedActionsToRetry (originalBatch As IndexBatch(Of Document), keyFieldName As String) As IndexBatch(Of Document)

Parameters

originalBatch
IndexBatch<Document>

The batch that partially failed indexing.

keyFieldName
String

The name of the key field from the index schema.

Returns

A new batch containing all the actions from the given batch that failed and should be retried.

Applies to

FindFailedActionsToRetry<T>(IndexBatch<T>, Func<T,String>)

Source:
IndexBatchException.cs

Finds all index actions in the given batch that failed and need to be retried, and returns them in a new batch.

public Microsoft.Azure.Search.Models.IndexBatch<T> FindFailedActionsToRetry<T> (Microsoft.Azure.Search.Models.IndexBatch<T> originalBatch, Func<T,string> keySelector);
member this.FindFailedActionsToRetry : Microsoft.Azure.Search.Models.IndexBatch<'T> * Func<'T, string> -> Microsoft.Azure.Search.Models.IndexBatch<'T>
Public Function FindFailedActionsToRetry(Of T) (originalBatch As IndexBatch(Of T), keySelector As Func(Of T, String)) As IndexBatch(Of T)

Type Parameters

T

The CLR type that maps to the index schema. Instances of this type can be stored as documents in the index.

Parameters

originalBatch
IndexBatch<T>

The batch that partially failed indexing.

keySelector
Func<T,String>

A lambda that retrieves a key value from a given document of type T.

Returns

A new batch containing all the actions from the given batch that failed and should be retried.

Applies to