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.classLevensteinDistanceLevenstein edit distance class.classNGramDistanceN-Gram version of edit distance based on paper by Grzegorz Kondrak, "N-gram similarity and distance".Methods in org.apache.lucene.search.spell that return StringDistance Modifier and Type Method Description StringDistanceSpellChecker. getStringDistance()Returns theStringDistanceinstance used by thisSpellCheckerinstance.Methods in org.apache.lucene.search.spell with parameters of type StringDistance Modifier and Type Method Description voidSpellChecker. setStringDistance(StringDistance sd)Sets theStringDistanceimplementation for thisSpellCheckerinstance.Constructors in org.apache.lucene.search.spell with parameters of type StringDistance Constructor Description SpellChecker(org.apache.lucene.store.Directory spellIndex, StringDistance sd)Use the given directory as a spell checker index.SpellChecker(org.apache.lucene.store.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.
-