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

IndexesOperationsExtensions.AnalyzeAsync 方法

定义

显示分析器如何将文本分解为标记。 https://docs.microsoft.com/rest/api/searchservice/test-analyzer

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.AnalyzeResult> AnalyzeAsync (this Microsoft.Azure.Search.IIndexesOperations operations, string indexName, Microsoft.Azure.Search.Models.AnalyzeRequest request, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member AnalyzeAsync : Microsoft.Azure.Search.IIndexesOperations * string * Microsoft.Azure.Search.Models.AnalyzeRequest * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.AnalyzeResult>
<Extension()>
Public Function AnalyzeAsync (operations As IIndexesOperations, indexName As String, request As AnalyzeRequest, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AnalyzeResult)

参数

operations
IIndexesOperations

此扩展方法的操作组。

indexName
String

要测试分析器的索引的名称。

request
AnalyzeRequest

要测试的文本和分析器或分析组件。

searchRequestOptions
SearchRequestOptions

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于