
SortField
- Namespace
- Rowles.LeanCorpus.Search.Scoring
- Assembly
- Rowles.LeanCorpus.dll
Specifies a field and direction for sorting search results.
public sealed class SortField
- Inheritance
-
SortField
SortField(SortFieldType, string, bool, SortValueSelector)
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
Selector
Gets the value selector used for multi-valued fields.
Type
Gets the sort criterion type.
Int64(string, bool)
Creates a 64-bit integer sort on the given field.
Numeric(string, bool)
Creates a numeric sort on the given field.
SortedInt64(string, SortValueSelector, bool)
Creates a multi-valued 64-bit integer sort on the given field.
SortedNumeric(string, SortValueSelector, bool)
Creates a multi-valued numeric sort on the given field.
String(string, bool)
Creates a string sort on the given field.