Class SortBy
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
A sort key for OrderBy. Create one with Field(string, bool) or Score().
public sealed class SortBy
- Inheritance
-
SortBy
- Inherited Members
Properties
- Descending
Whether the largest values come first (always true for Score()).
Methods
- Field(string, bool)
Orders hits by the value of a fast field (one created with
fast: true): u64, i64, f64, bool, date, bytes, or text (ordinal, byte-wise order).
- Score()
Orders hits by relevance, best first. Useful as a tie-breaker after a field, or before one.
- ToString()
For example
year desc, or_score.