Package org.apache.lucene.search.spell
Suggest alternate spellings for words.
Also see the spell checker Wiki page.
-
Interface Summary Interface Description Dictionary A simple interface representing a Dictionary.StringDistance Interface for string distances.TermFreqIterator Interface for enumerating term,weight pairs. -
Class Summary Class Description CombineSuggestion A suggestion generated by combining one or more original query termsDirectSpellChecker Simple automaton-based spellchecker.HighFrequencyDictionary HighFrequencyDictionary: terms taken from the given field of a Lucene index, which appear in a number of documents above a given threshold.JaroWinklerDistance Similarity measure for short strings such as person names.LevensteinDistance Levenstein edit distance class.LuceneDictionary Lucene Dictionary: terms taken from the given field of a Lucene index.LuceneLevenshteinDistance Damerau-Levenshtein (optimal string alignment) implemented in a consistent way as Lucene's FuzzyTermsEnum with the transpositions option enabled.NGramDistance N-Gram version of edit distance based on paper by Grzegorz Kondrak, "N-gram similarity and distance".PlainTextDictionary Dictionary represented by a text file.SpellChecker Spell Checker class (Main class)
(initially inspired by the David Spencer code).SuggestWord SuggestWord, used in suggestSimilar method in SpellChecker class.SuggestWordFrequencyComparator Frequency first, then score.SuggestWordQueue Sorts SuggestWord instancesSuggestWordScoreComparator Score first, then frequencyTermFreqIterator.TermFreqIteratorWrapper Wraps a BytesRefIterator as a TermFreqIterator, with all weights set to1
WordBreakSpellChecker A spell checker whose sole function is to offer suggestions by combining multiple terms into one word and/or breaking terms into multiple words. -
Enum Summary Enum Description SuggestMode Set of strategies for suggesting related termsWordBreakSpellChecker.BreakSuggestionSortMethod Determines the order to list word break suggestions