Method SuggestAsync
| Edit this page View SourceSuggestAsync(string, CancellationToken)
Gets a list of suggestions for the given query.
Declaration
public virtual Task<IList<SearchSuggestion>> SuggestAsync(string queryString, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | queryString | Text of the query. |
| CancellationToken | cancellationToken | Token used to cancel requests (e.g. because the search text has changed). |
Returns
| Type | Description |
|---|---|
| Task<IList<SearchSuggestion>> | Task returning a list of suggestions. |