Uses of Class
org.apache.lucene.search.FieldComparator
Package
Description
Code to search indices.
Comparators, used to compare hits so as to determine their sort order when collecting the top
results with
TopFieldCollector
.-
Uses of FieldComparator in org.apache.lucene.search
Modifier and TypeClassDescriptionstatic final class
Sorts by descending relevance.static class
Sorts by field's natural Term sort order.class
BaseFieldComparator
implementation that is used for all contexts.Modifier and TypeFieldDescriptionprotected final FieldComparator<?>[]
FieldValueHitQueue.comparators
Modifier and TypeMethodDescriptionSortedNumericSortField.getComparator
(int numHits, Pruning pruning) SortedSetSortField.getComparator
(int numHits, Pruning pruning) SortField.getComparator
(int numHits, Pruning pruning) Returns theFieldComparator
to use for sorting.FieldComparator<?>[]
FieldValueHitQueue.getComparators()
abstract FieldComparator
<?> FieldComparatorSource.newComparator
(String fieldname, int numHits, Pruning pruning, boolean reversed) Creates a comparator for the field in the given index. -
Uses of FieldComparator in org.apache.lucene.search.comparators
Modifier and TypeClassDescriptionclass
Comparator that sorts by asc _docclass
Comparator based onDouble.compare(double, double)
fornumHits
.class
Comparator based onFloat.compare(float, float)
fornumHits
.class
Comparator based onInteger.compare(int, int)
fornumHits
.class
Comparator based onLong.compare(long, long)
fornumHits
.class
NumericComparator<T extends Number>
Abstract numeric comparator for comparing numeric values.class
Sorts by field's natural Term sort order, using ordinals.