org.apache.lucene.search.spell
Class SuggestWord
java.lang.Object
org.apache.lucene.search.spell.SuggestWord
public final class SuggestWord
- extends Object
SuggestWord, used in suggestSimilar method in SpellChecker class.
Default sort is first by score, then by frequency.
Field Summary |
int |
freq
The freq of the word |
float |
score
the score of the word |
String |
string
the suggested word |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
score
public float score
- the score of the word
freq
public int freq
- The freq of the word
string
public String string
- the suggested word
SuggestWord
public SuggestWord()