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 insideDirectSpellChecker.
-
-
Field Summary
Fields Modifier and Type Field Description floatboostThe boost representing the similarity from the FuzzyTermsEnum (internal similarity score)intdocfreqThe df of the spellcheck correction.floatscoreThe similarity score.BytesReftermThe actual spellcheck correction.StringtermAsStringThe spellcheck correction represented as string, can benull.
-
Constructor Summary
Constructors Constructor Description ScoreTerm()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DirectSpellChecker.ScoreTerm other)booleanequals(Object obj)inthashCode()
-
-
-
Field Detail
-
term
public BytesRef term
The actual spellcheck correction.
-
boost
public float boost
The boost representing the similarity from the FuzzyTermsEnum (internal similarity score)
-
docfreq
public int docfreq
The df of the spellcheck correction.
-
termAsString
public String termAsString
The spellcheck correction represented as string, can benull.
-
score
public float score
The similarity score.
-
-
Method Detail
-
compareTo
public int compareTo(DirectSpellChecker.ScoreTerm other)
- Specified by:
compareToin interfaceComparable<DirectSpellChecker.ScoreTerm>
-
-