Enum SortFieldType
Specifies the type of the terms to be sorted, or special types such as CUSTOM
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public enum SortFieldType
Fields
Name | Description |
---|---|
BYTE | Sort using term values as encoded System.Bytes. Sort values are System.Byte and lower values are at the front. |
BYTES | Sort use byte[] index values. |
CUSTOM | Sort using a custom System.Collections.Generic.IComparer<T>. Sort values are any System.IComparable<T> and sorting is done according to natural order. |
DOC | Sort by document number (index order). Sort values are System.Int32 and lower values are at the front. |
DOUBLE | Sort using term values as encoded System.Doubles. Sort values are System.Double and lower values are at the front. |
INT16 | Sort using term values as encoded System.Int16s. Sort values are System.Int16 and lower values are at the front. NOTE: This was SHORT in Lucene |
INT32 | Sort using term values as encoded System.Int32s. Sort values are System.Int32 and lower values are at the front. NOTE: This was INT in Lucene |
INT64 | Sort using term values as encoded System.Int64s. Sort values are System.Int64 and lower values are at the front. NOTE: This was LONG in Lucene |
REWRITEABLE | Force rewriting of SortField using Rewrite(IndexSearcher) before it can be used for sorting |
SCORE | Sort by document score (relevance). Sort values are System.Single and higher values are at the front. |
SINGLE | Sort using term values as encoded System.Singles. Sort values are System.Single and lower values are at the front. NOTE: This was FLOAT in Lucene |
STRING | Sort using term values as System.Strings. Sort values are System.Strings and lower values are at the front. |
STRING_VAL | Sort using term values as System.Strings, but comparing by value (using CompareTo(BytesRef)) for all comparisons. this is typically slower than STRING, which uses ordinals to do the sorting. |