
SortField
- Namespace
- Rowles.LeanLucene.Search.Scoring
- Assembly
- Rowles.LeanLucene.dll
Specifies a field and direction for sorting search results.
public sealed class SortField
SortField
SortField(SortFieldType, string, bool)
Initialises a new SortField with the given type, field name, and direction.
DocId
Sort by internal document ID (insertion order).
Score
Sort by relevance score (default).
Descending
Gets a value indicating whether results are sorted in descending order.
FieldName
Type
Gets the sort criterion type.
Numeric(string, bool)
Creates a numeric sort on the given field.
String(string, bool)
Creates a string sort on the given field.