Package | Description |
---|---|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<SuggestWord> |
SuggestWordQueue.DEFAULT_COMPARATOR |
Modifier and Type | Method and Description |
---|---|
Comparator<SuggestWord> |
SpellChecker.getComparator() |
Modifier and Type | Method and Description |
---|---|
int |
SuggestWordScoreComparator.compare(SuggestWord first,
SuggestWord second) |
int |
SuggestWordFrequencyComparator.compare(SuggestWord first,
SuggestWord second) |
protected boolean |
SuggestWordQueue.lessThan(SuggestWord wa,
SuggestWord wb) |
Modifier and Type | Method and Description |
---|---|
void |
SpellChecker.setComparator(Comparator<SuggestWord> comparator)
Sets the
Comparator for the SuggestWordQueue . |
Constructor and Description |
---|
SpellChecker(Directory spellIndex,
StringDistance sd,
Comparator<SuggestWord> comparator)
Use the given directory as a spell checker index with the given
StringDistance measure
and the given Comparator for sorting the results. |
SuggestWordQueue(int size,
Comparator<SuggestWord> comparator)
Specify the size of the queue and the comparator to use for sorting.
|