Package | Description |
---|---|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
Modifier and Type | Field | Description |
---|---|---|
static Comparator<SuggestWord> |
SuggestWordQueue.DEFAULT_COMPARATOR |
Modifier and Type | Method | Description |
---|---|---|
Comparator<SuggestWord> |
SpellChecker.getComparator() |
Modifier and Type | Method | Description |
---|---|---|
int |
SuggestWordFrequencyComparator.compare(SuggestWord first,
SuggestWord second) |
|
int |
SuggestWordScoreComparator.compare(SuggestWord first,
SuggestWord second) |
|
protected boolean |
SuggestWordQueue.lessThan(SuggestWord wa,
SuggestWord wb) |
Modifier and Type | Method | Description |
---|---|---|
void |
SpellChecker.setComparator(Comparator<SuggestWord> comparator) |
Sets the
Comparator for the SuggestWordQueue . |
Constructor | 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.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.