lux.solr
Class MissingStringLastComparatorSource
java.lang.Object
org.apache.lucene.search.FieldComparatorSource
lux.solr.MissingStringLastComparatorSource
public class MissingStringLastComparatorSource
- extends org.apache.lucene.search.FieldComparatorSource
|
Method Summary |
org.apache.lucene.search.FieldComparator |
newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MissingStringLastComparatorSource
public MissingStringLastComparatorSource()
MissingStringLastComparatorSource
public MissingStringLastComparatorSource(org.apache.lucene.util.BytesRef missingValueProxy)
- Creates a
FieldComparatorSource that sorts null last in a normal ascending sort.
missingValueProxy as the value to return from FieldComparator.value()
- Parameters:
missingValueProxy - The value returned when sortValue() is called for a document missing the sort field.
This value is *not* normally used for sorting.
newComparator
public org.apache.lucene.search.FieldComparator newComparator(String fieldname,
int numHits,
int sortPos,
boolean reversed)
throws IOException
- Specified by:
newComparator in class org.apache.lucene.search.FieldComparatorSource
- Throws:
IOException
Copyright © 2013. All Rights Reserved.