SearchIndexClient.AnalyzeText Méthode

Définition

Montre comment un analyseur décompose le texte en jetons.

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

Paramètres

indexName
String

Nom de l’index utilisé pour tester un analyseur.

options
AnalyzeTextOptions

AnalyzeTextOptions contenant le texte et les composants de l’analyseur ou de l’analyseur à tester.

cancellationToken
CancellationToken

Facultatif CancellationToken pour propager des notifications indiquant que l’opération doit être annulée.

Retours

à Response<T> partir du serveur contenant une liste de AnalyzedTokenInfo pour le texte analysé.

Exceptions

Levé quand indexName ou options a la valeur Null.

Levée lorsqu’un échec est retourné par le service Search.

S’applique à