Package org.apache.lucene.search.spell
Class SuggestWordScoreComparator
java.lang.Object
org.apache.lucene.search.spell.SuggestWordScoreComparator
- All Implemented Interfaces:
Comparator<SuggestWord>
Score first, then frequency
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new comparator that will compare bySuggestWord.score, then bySuggestWord.freq, then bySuggestWord.string. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SuggestWordScoreComparator
public SuggestWordScoreComparator()Creates a new comparator that will compare bySuggestWord.score, then bySuggestWord.freq, then bySuggestWord.string.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<SuggestWord>
-