SearchIndexClient.AnalyzeTextAsync Método

Definição

Mostra como um analisador divide o texto em tokens.

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)))

Parâmetros

indexName
String

O nome do índice usado para testar um analisador.

options
AnalyzeTextOptions

O AnalyzeTextOptions que contém o texto e os componentes do analisador ou do analisador a serem testados.

cancellationToken
CancellationToken

Opcional CancellationToken para propagar notificações de que a operação deve ser cancelada.

Retornos

O Response<T> do servidor que contém uma lista de AnalyzedTokenInfo para texto analisado.

Exceções

Gerado quando indexName ou options é nulo.

Gerada quando uma falha é retornada pelo serviço Pesquisa.

Aplica-se a