Compartir a través de


DocumentsOperationsExtensions.AutocompleteAsync Método

Definición

Consulta el número de documentos en el índice de búsqueda.

public static System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.AutocompleteResult> AutocompleteAsync (this Microsoft.Azure.Search.IDocumentsOperations operations, string searchText, string suggesterName, Microsoft.Azure.Search.Models.AutocompleteParameters autocompleteParameters = default, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member AutocompleteAsync : Microsoft.Azure.Search.IDocumentsOperations * string * string * Microsoft.Azure.Search.Models.AutocompleteParameters * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Search.Models.AutocompleteResult>
<Extension()>
Public Function AutocompleteAsync (operations As IDocumentsOperations, searchText As String, suggesterName As String, Optional autocompleteParameters As AutocompleteParameters = Nothing, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AutocompleteResult)

Parámetros

operations
IDocumentsOperations

El grupo de operaciones de este método de extensión.

searchText
String
suggesterName
String
autocompleteParameters
AutocompleteParameters
searchRequestOptions
SearchRequestOptions

Parámetros adicionales para la operación

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a