|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.solr.search.Sorting
public class Sorting
Extra lucene sorting utilities & convenience methods
| Constructor Summary | |
|---|---|
Sorting()
|
|
| Method Summary | |
|---|---|
static org.apache.lucene.search.SortField |
getStringSortField(java.lang.String fieldName,
boolean reverse,
boolean nullLast,
boolean nullFirst)
Returns a SortField for a string field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sorting()
| Method Detail |
|---|
public static org.apache.lucene.search.SortField getStringSortField(java.lang.String fieldName,
boolean reverse,
boolean nullLast,
boolean nullFirst)
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.
fieldName - the name of the field to sort onreverse - true for a reverse (desc) sortnullLast - true if null should come last, regardless of sort ordernullFirst - true if null should come first, regardless of sort order
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||