IFulltext QueryTDocumentThen By DescendingTKey Method
Sort the results of this query by the given key in descending order.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The current instance.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
IFulltextQuery<TDocument> ThenByDescending<TKey>(
Expression<Func<TDocument, TKey>> keySelector
)
VB
Function ThenByDescending(Of TKey) (
keySelector As Expression(Of Func(Of TDocument, TKey))
) As IFulltextQuery(Of TDocument)Parameters
- keySelector ExpressionFuncTDocument, 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
IFulltextQueryTDocumentThe current instance.
Remarks
This method is semantically equivalent to OrderByDescendingTKey(ExpressionFuncTDocument, TKey)
Exceptions
| ArgumentNullException | Occurs when keySelector is null. |
| ArgumentNullException | Occurs when keySelector is null. |