java.lang.Object
org.apache.lucene.search.FieldComparatorSource
- Direct Known Subclasses:
DoubleValuesSource.DoubleValuesComparatorSource,LongValuesSource.LongValuesComparatorSource,ValueSource.ValueSourceComparatorSource
Provides a
FieldComparator for custom field sorting.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FieldComparator<?> newComparator(String fieldname, int numHits, Pruning pruning, boolean reversed) Creates a comparator for the field in the given index.
-
Constructor Details
-
FieldComparatorSource
public FieldComparatorSource()
-
-
Method Details
-
newComparator
public abstract FieldComparator<?> newComparator(String fieldname, int numHits, Pruning pruning, boolean reversed) Creates a comparator for the field in the given index.- Parameters:
fieldname- Name of the field to create comparator for.- Returns:
- FieldComparator.
-