Package org.apache.lucene.search.spell
Class DirectSpellChecker.ScoreTerm
java.lang.Object
org.apache.lucene.search.spell.DirectSpellChecker.ScoreTerm
- All Implemented Interfaces:
Comparable<DirectSpellChecker.ScoreTerm>
- Enclosing class:
- DirectSpellChecker
protected static class DirectSpellChecker.ScoreTerm
extends Object
implements Comparable<DirectSpellChecker.ScoreTerm>
Holds a spelling correction for internal usage inside
DirectSpellChecker
.-
Field Summary
Modifier and TypeFieldDescriptionfloat
The boost representing the similarity from the FuzzyTermsEnum (internal similarity score)int
The df of the spellcheck correction.float
The similarity score.The actual spellcheck correction.The spellcheck correction represented as string, can benull
. -
Constructor Summary
-
Method Summary
-
Field Details
-
term
The actual spellcheck correction. -
boost
public float boostThe boost representing the similarity from the FuzzyTermsEnum (internal similarity score) -
docfreq
public int docfreqThe df of the spellcheck correction. -
termAsString
The spellcheck correction represented as string, can benull
. -
score
public float scoreThe similarity score.
-
-
Constructor Details
-
ScoreTerm
public ScoreTerm()Constructor.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<DirectSpellChecker.ScoreTerm>
-
hashCode
public int hashCode() -
equals
-