| Package | Description | 
|---|---|
| org.apache.lucene.search.spell | Suggest alternate spellings for words. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | JaroWinklerDistanceSimilarity measure for short strings such as person names. | 
| class  | LevensteinDistanceLevenstein edit distance class. | 
| class  | LuceneLevenshteinDistanceDamerau-Levenshtein (optimal string alignment) implemented in a consistent 
  way as Lucene's FuzzyTermsEnum with the transpositions option enabled. | 
| class  | NGramDistanceN-Gram version of edit distance based on paper by Grzegorz Kondrak, 
 "N-gram similarity and distance". | 
| Modifier and Type | Field and Description | 
|---|---|
| static StringDistance | DirectSpellChecker. INTERNAL_LEVENSHTEINThe default StringDistance, Damerau-Levenshtein distance implemented internally
  via  LevenshteinAutomata. | 
| Modifier and Type | Method and Description | 
|---|---|
| StringDistance | DirectSpellChecker. getDistance()Get the string distance metric in use. | 
| StringDistance | SpellChecker. getStringDistance()Returns the  StringDistanceinstance used by thisSpellCheckerinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DirectSpellChecker. setDistance(StringDistance distance)Set the string distance metric. | 
| void | SpellChecker. setStringDistance(StringDistance sd)Sets the  StringDistanceimplementation for thisSpellCheckerinstance. | 
| 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  StringDistancemeasure
 and the givenComparatorfor sorting the results. | 
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.