SearchIndexClient.AnalyzeTextAsync メソッド

定義

アナライザーがテキストをトークンに分割する方法を示します。

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Indexes.Models.AnalyzedTokenInfo>>> AnalyzeTextAsync (string indexName, Azure.Search.Documents.Indexes.Models.AnalyzeTextOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member AnalyzeTextAsync : string * Azure.Search.Documents.Indexes.Models.AnalyzeTextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Indexes.Models.AnalyzedTokenInfo>>>
override this.AnalyzeTextAsync : string * Azure.Search.Documents.Indexes.Models.AnalyzeTextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Search.Documents.Indexes.Models.AnalyzedTokenInfo>>>
Public Overridable Function AnalyzeTextAsync (indexName As String, options As AnalyzeTextOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of AnalyzedTokenInfo)))

パラメーター

indexName
String

アナライザーのテストに使用されるインデックスの名前。

options
AnalyzeTextOptions

AnalyzeTextOptionsテストするテキストおよびアナライザーまたはアナライザー コンポーネントを含む 。

cancellationToken
CancellationToken

操作を取り消す必要があることを示す通知を伝達する場合は省略可能 CancellationToken です。

戻り値

Response<T>分析されたテキストの の一覧AnalyzedTokenInfoを含むサーバーの 。

例外

indexName または options が null の場合にスローされます。

Search Serviceによってエラーが返されたときにスローされます。

適用対象