Package | Description |
---|---|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
Modifier and Type | Class and Description |
---|---|
class |
JaroWinklerDistance
Similarity measure for short strings such as person names.
|
class |
LevensteinDistance
Levenstein edit distance class.
|
class |
NGramDistance
N-Gram version of edit distance based on paper by Grzegorz Kondrak,
"N-gram similarity and distance".
|
Modifier and Type | Method and Description |
---|---|
StringDistance |
SpellChecker.getStringDistance()
Returns the
StringDistance instance used by this
SpellChecker instance. |
Modifier and Type | Method and Description |
---|---|
void |
SpellChecker.setStringDistance(StringDistance sd)
Sets the
StringDistance implementation for this
SpellChecker instance. |
Constructor and Description |
---|
SpellChecker(Directory spellIndex,
StringDistance sd)
Use the given directory as a spell checker index.
|
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. |