Class NRTSuggester.ScoringPathComparator
java.lang.Object
org.apache.lucene.search.suggest.document.NRTSuggester.ScoringPathComparator
- All Implemented Interfaces:
Comparator<Util.FSTPath<PairOutputs.Pair<Long,
BytesRef>>>
- Enclosing class:
- NRTSuggester
private static class NRTSuggester.ScoringPathComparator
extends Object
implements Comparator<Util.FSTPath<PairOutputs.Pair<Long,BytesRef>>>
Compares partial completion paths using
CompletionScorer.score(float, float)
, breaks
ties comparing path inputs-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> first, Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> second) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
scorer
-
-
Constructor Details
-
ScoringPathComparator
-
-
Method Details
-
compare
public int compare(Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> first, Util.FSTPath<PairOutputs.Pair<Long, BytesRef>> second) - Specified by:
compare
in interfaceComparator<Util.FSTPath<PairOutputs.Pair<Long,
BytesRef>>>
-