| IFulltextSessionGetSuggestionsAsyncTDocument Method (String, CancellationToken) |
Asynchronously gets a suggestion for the given word or query. In case of a single word Sphinx' SUGGEST() function is used, in case
of a query (multiple words), QSUGGEST() is used.
Namespace:
SphinxConnector.FluentApi
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntax Task<IList<Suggestion>> GetSuggestionsAsync<TDocument>(
string wordOrQuery,
CancellationToken cancellationToken
)
Function GetSuggestionsAsync(Of TDocument) (
wordOrQuery As String,
cancellationToken As CancellationToken
) As Task(Of IList(Of Suggestion))
Parameters
- wordOrQuery
- Type: SystemString
The word or query to get suggestions for. - cancellationToken
- Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.
Type Parameters
- TDocument
- The document type to get suggestions for.
Return Value
Type:
TaskIListSuggestionA list of suggestions.
See Also