| java.lang.Object org.apache.solr.search.Sorting
Sorting | public class Sorting (Code) | | Extra lucene sorting utilities & convenience methods
author: yonik version: $Id: Sorting.java 472574 2006-11-08 18:25:52Z yonik $ |
Method Summary | |
public static SortField | getStringSortField(String fieldName, boolean reverse, boolean nullLast, boolean nullFirst) Returns a
SortField for a string field. |
nullStringLastComparatorSource | final static SortComparatorSource nullStringLastComparatorSource(Code) | | |
getStringSortField | public static SortField getStringSortField(String fieldName, boolean reverse, boolean nullLast, boolean nullFirst)(Code) | | Returns a
SortField for a string field.
If nullLast and nullFirst are both false, then default lucene string sorting is used where
null strings sort first in an ascending sort, and last in a descending sort.
Parameters: fieldName - the name of the field to sort on Parameters: reverse - true for a reverse (desc) sort Parameters: nullLast - true if null should come last, regardless of sort order Parameters: nullFirst - true if null should come first, regardless of sort order SortField |
|
|