Class DirectCandidateGenerator.Candidate
java.lang.Object
org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.Candidate
- All Implemented Interfaces:
Comparable<DirectCandidateGenerator.Candidate>
- Enclosing class:
- DirectCandidateGenerator
public static class DirectCandidateGenerator.Candidate
extends Object
implements Comparable<DirectCandidateGenerator.Candidate>
-
Field Summary
Modifier and TypeFieldDescriptionstatic DirectCandidateGenerator.Candidate[]
double
double
org.apache.lucene.util.BytesRef
org.apache.lucene.codecs.TermStats
boolean
-
Constructor Summary
ConstructorDescriptionCandidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double stringDistance, double score, boolean userInput)
-
Method Summary
-
Field Details
-
EMPTY
-
term
public final org.apache.lucene.util.BytesRef term -
stringDistance
public final double stringDistance -
termStats
public final org.apache.lucene.codecs.TermStats termStats -
score
public final double score -
userInput
public final boolean userInput
-
-
Constructor Details
-
Candidate
public Candidate(org.apache.lucene.util.BytesRef term, org.apache.lucene.codecs.TermStats termStats, double stringDistance, double score, boolean userInput)
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
Lower scores sort first; if scores are equal, then later (zzz) terms sort first- Specified by:
compareTo
in interfaceComparable<DirectCandidateGenerator.Candidate>
-