Click or drag to resize
IFulltextSessionGetSuggestionsTDocument Method (String, SuggestionOptions)
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: 3.12.6
Syntax
IList<Suggestion> GetSuggestions<TDocument>(
	string wordOrQuery,
	SuggestionOptions suggestionOptions
)

Parameters

wordOrQuery
Type: SystemString
The word or query to get suggestions for.
suggestionOptions
Type: SphinxConnector.FluentApiSuggestionOptions
The options to use.

Type Parameters

TDocument
The document type to get suggestions for.

Return Value

Type: IListSuggestion
A list of suggestions.
See Also