Class SortBy<TDocument>
A builder for specifying a sort order.
public static class SortBy<TDocument>Type Parameters
- TDocument
- The type of the document. 
- Inheritance
- 
      
      SortBy<TDocument>
- Inherited Members
Methods
Ascending(params Expression<Func<TDocument, object>>[])
Adds keys to be sorted by in ascending order.
public static SortByBuilder<TDocument> Ascending(params Expression<Func<TDocument, object>>[] memberExpressions)Parameters
- memberExpressionsExpression<Func<TDocument, object>>[]
- The member expressions. 
Returns
- SortByBuilder<TDocument>
- The builder (so method calls can be chained). 
Descending(params Expression<Func<TDocument, object>>[])
Adds keys to be sorted by in descending order.
public static SortByBuilder<TDocument> Descending(params Expression<Func<TDocument, object>>[] memberExpressions)Parameters
- memberExpressionsExpression<Func<TDocument, object>>[]
- The member expressions. 
Returns
- SortByBuilder<TDocument>
- The builder (so method calls can be chained). 
MetaTextScore(Expression<Func<TDocument, object>>)
Adds a key to sort by the computed relevance score when using text search. The name of the key should be the name of the projected relevance score field.
public static SortByBuilder<TDocument> MetaTextScore(Expression<Func<TDocument, object>> memberExpression)Parameters
- memberExpressionExpression<Func<TDocument, object>>
- The member expression specifying the projected field. 
Returns
- SortByBuilder<TDocument>
- The builder (so method calls can be chained).