The fields of the SortField class are listed below. For a complete list of SortField class members, see the SortField Members topic.
![]() ![]() | Guess type of sort based on field contents. A regular expression is used to look at the first term indexed for the field and determine if it represents an integer number, a floating point number, or just arbitrary string characters. |
![]() ![]() | Sort using a custom Comparator. Sort values are any Comparable and sorting is done according to natural order. |
![]() ![]() | Sort by document number (index order). Sort values are Integer and lower values are at the front. |
![]() ![]() | Represents sorting by document number (index order). |
![]() ![]() | Represents sorting by document score (relevancy). |
![]() ![]() | Sort using term values as encoded Floats. Sort values are Float and lower values are at the front. |
![]() ![]() | Sort using term values as encoded Integers. Sort values are Integer and lower values are at the front. |
![]() ![]() | Sort by document score (relevancy). Sort values are Float and higher values are at the front. |
![]() ![]() | Sort using term values as Strings. Sort values are String and lower values are at the front. |