你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IndexBatchException.FindFailedActionsToRetry 方法

定义

重载

FindFailedActionsToRetry(IndexBatch<Document>, String)

查找给定批处理中失败且需要重试的所有索引操作,并在新批中返回这些操作。

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

查找给定批处理中失败且需要重试的所有索引操作,并在新批中返回这些操作。

FindFailedActionsToRetry(IndexBatch<Document>, String)

Source:
IndexBatchException.cs

查找给定批处理中失败且需要重试的所有索引操作,并在新批中返回这些操作。

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)

参数

originalBatch
IndexBatch<Document>

建立索引部分失败的批处理。

keyFieldName
String

索引架构中的键字段的名称。

返回

新批处理,其中包含给定批处理中失败并应重试的所有操作。

适用于

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

Source:
IndexBatchException.cs

查找给定批处理中失败且需要重试的所有索引操作,并在新批中返回这些操作。

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)

类型参数

T

映射到索引架构的 CLR 类型。 此类型的实例可以在索引中存储为文档。

参数

originalBatch
IndexBatch<T>

建立索引部分失败的批处理。

keySelector
Func<T,String>

用于从给定 T 类型的文档中检索键值的 lambda。

返回

新批处理,其中包含给定批处理中失败并应重试的所有操作。

适用于