Uses of Interface
org.apache.lucene.search.spell.StringDistance
-
Packages that use StringDistance Package Description org.apache.lucene.search.spell Suggest alternate spellings for words. -
-
Uses of StringDistance in org.apache.lucene.search.spell
Classes in org.apache.lucene.search.spell that implement StringDistance Modifier and Type Class Description classJaroWinklerDistanceSimilarity measure for short strings such as person names.classLevenshteinDistanceLevenshtein edit distance class.classLuceneLevenshteinDistanceDamerau-Levenshtein (optimal string alignment) implemented in a consistent way as Lucene's FuzzyTermsEnum with the transpositions option enabled.classNGramDistanceN-Gram version of edit distance based on paper by Grzegorz Kondrak, "N-gram similarity and distance".Fields in org.apache.lucene.search.spell declared as StringDistance Modifier and Type Field Description static StringDistanceDirectSpellChecker. INTERNAL_LEVENSHTEINThe default StringDistance, Damerau-Levenshtein distance implemented internally viaLevenshteinAutomata.Methods in org.apache.lucene.search.spell that return StringDistance Modifier and Type Method Description StringDistanceDirectSpellChecker. getDistance()Get the string distance metric in use.StringDistanceSpellChecker. getStringDistance()Returns theStringDistanceinstance used by thisSpellCheckerinstance.Methods in org.apache.lucene.search.spell with parameters of type StringDistance Modifier and Type Method Description voidDirectSpellChecker. setDistance(StringDistance distance)Set the string distance metric.voidSpellChecker. setStringDistance(StringDistance sd)Sets theStringDistanceimplementation for thisSpellCheckerinstance.Constructors in org.apache.lucene.search.spell with parameters of type StringDistance Constructor 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 givenStringDistancemeasure and the givenComparatorfor sorting the results.
-