IFulltextSessionGetSuggestionsTDocument(String) Method

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.4.0
C#
IList<Suggestion> GetSuggestions<TDocument>(
	string wordOrQuery
)

Parameters

wordOrQuery  String
The word or query to get suggestions for.

Type Parameters

TDocument
The document type to get suggestions for.

Return Value

IListSuggestion
A list of suggestions.

Exceptions

ArgumentNullExceptionwordOrQuery is null.
ArgumentExceptionwordOrQuery is empty.
FulltextExceptionOccurs when there is an error during the execution of the request.

See Also