Class Correction
- java.lang.Object
-
- org.elasticsearch.search.suggest.phrase.Correction
-
- All Implemented Interfaces:
Comparable<Correction>
public final class Correction extends Object implements Comparable<Correction>
-
-
Field Summary
Fields Modifier and Type Field Description DirectCandidateGenerator.Candidate[]candidatesstatic Correction[]EMPTYdoublescore
-
Constructor Summary
Constructors Constructor Description Correction(double score, DirectCandidateGenerator.Candidate[] candidates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Correction other)Lower scores sorts first; if scores are equal, than later terms (zzz) sort first .BytesRefjoin(BytesRef separator)BytesRefjoin(BytesRef separator, BytesRefBuilder result, BytesRef preTag, BytesRef postTag)BytesRefjoin(BytesRef separator, BytesRef preTag, BytesRef postTag)StringtoString()
-
-
-
Field Detail
-
EMPTY
public static final Correction[] EMPTY
-
score
public double score
-
candidates
public final DirectCandidateGenerator.Candidate[] candidates
-
-
Constructor Detail
-
Correction
public Correction(double score, DirectCandidateGenerator.Candidate[] candidates)
-
-
Method Detail
-
join
public BytesRef join(BytesRef separator, BytesRefBuilder result, BytesRef preTag, BytesRef postTag)
-
compareTo
public int compareTo(Correction other)
Lower scores sorts first; if scores are equal, than later terms (zzz) sort first .- Specified by:
compareToin interfaceComparable<Correction>
-
-