Click or drag to resize
IFulltextQueryTDocumentThenByTKey Method
Sort the results of this query by the given key in ascending order.

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
IFulltextQuery<TDocument> ThenBy<TKey>(
	Expression<Func<TDocument, TKey>> keySelector
)

Parameters

keySelector
Type: System.Linq.ExpressionsExpressionFuncTDocument, TKey
A function to extract the key from a document.

Type Parameters

TKey
The type of the key returned by the function that is represented by keySelector.

Return Value

Type: IFulltextQueryTDocument
The current instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionOccurs when keySelector is null.
ArgumentNullExceptionOccurs when keySelector is null.
Remarks
See Also