Uses of Interface
org.apache.lucene.search.spell.StringDistance
Packages that use StringDistance
-
Uses of StringDistance in org.apache.lucene.search.spell
Classes in org.apache.lucene.search.spell that implement StringDistanceModifier and TypeClassDescriptionclassSimilarity measure for short strings such as person names.final classLevenshtein edit distance class.final classDamerau-Levenshtein (optimal string alignment) implemented in a consistent way as Lucene's FuzzyTermsEnum with the transpositions option enabled.classN-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 StringDistanceModifier and TypeFieldDescriptionstatic final StringDistanceDirectSpellChecker.INTERNAL_LEVENSHTEINThe default StringDistance, Damerau-Levenshtein distance implemented internally viaLevenshteinAutomata.Methods in org.apache.lucene.search.spell that return StringDistanceModifier and TypeMethodDescriptionDirectSpellChecker.getDistance()Get the string distance metric in use.SpellChecker.getStringDistance()Returns theStringDistanceinstance used by thisSpellCheckerinstance.Methods in org.apache.lucene.search.spell with parameters of type StringDistanceModifier and TypeMethodDescriptionvoidDirectSpellChecker.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 StringDistanceModifierConstructorDescriptionSpellChecker(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.