IFulltext SessionGet Suggestions AsyncTDocument(String, Suggestion Options) Method
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.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
A list of suggestions.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
Task<IList<Suggestion>> GetSuggestionsAsync<TDocument>(
string wordOrQuery,
SuggestionOptions suggestionOptions
)
VB
Function GetSuggestionsAsync(Of TDocument) (
wordOrQuery As String,
suggestionOptions As SuggestionOptions
) As Task(Of IList(Of Suggestion))Parameters
- wordOrQuery String
- The word or query to get suggestions for.
- suggestionOptions SuggestionOptions
- The options to use.
Type Parameters
- TDocument
- The document type to get suggestions for.
Return Value
TaskIListSuggestionA list of suggestions.