@Deprecated public class Sorting extends Object
Constructor and Description |
---|
Sorting()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SortField |
getStringSortField(String fieldName,
boolean reverse,
boolean nullLast,
boolean nullFirst)
Deprecated.
custom
FieldType s should use FieldType.getSortField(org.apache.solr.schema.SchemaField, boolean) . Other usage should leverage th underling lucene SortField classes directly. |
static SortField |
getTextSortField(String fieldName,
boolean reverse,
boolean nullLast,
boolean nullFirst)
Deprecated.
custom
FieldType s should use FieldType.getSortedSetSortField(org.apache.solr.schema.SchemaField, org.apache.lucene.search.SortedSetSelector.Type, boolean, java.lang.Object, java.lang.Object) . Other usage should leverage th underling lucene SortedSetSortField classes directly. |
@Deprecated public static SortField getStringSortField(String fieldName, boolean reverse, boolean nullLast, boolean nullFirst)
FieldType
s should use FieldType.getSortField(org.apache.solr.schema.SchemaField, boolean)
. Other usage should leverage th underling lucene SortField
classes directly.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@Deprecated public static SortField getTextSortField(String fieldName, boolean reverse, boolean nullLast, boolean nullFirst)
FieldType
s should use FieldType.getSortedSetSortField(org.apache.solr.schema.SchemaField, org.apache.lucene.search.SortedSetSelector.Type, boolean, java.lang.Object, java.lang.Object)
. Other usage should leverage th underling lucene SortedSetSortField
classes directly.getStringSortField(java.lang.String, boolean, boolean, boolean)
) except safe for tokenized fieldsCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.