Uses of Class
org.apache.lucene.search.spell.SuggestWord
-
Packages that use SuggestWord Package Description org.apache.lucene.search.spell -
-
Uses of SuggestWord in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell with type parameters of type SuggestWord Modifier and Type Field Description static Comparator<SuggestWord>SuggestWordQueue. DEFAULT_COMPARATORDefault comparator: score then frequency.Methods in org.apache.lucene.search.spell that return SuggestWord Modifier and Type Method Description SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir)SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir, SuggestMode suggestMode)SuggestWord[]DirectSpellChecker. suggestSimilar(Term term, int numSug, IndexReader ir, SuggestMode suggestMode, float accuracy)Suggest similar words.Methods in org.apache.lucene.search.spell that return types with arguments of type SuggestWord Modifier and Type Method Description Comparator<SuggestWord>DirectSpellChecker. getComparator()Get the current comparator in use.Comparator<SuggestWord>SpellChecker. getComparator()Gets the comparator in use for ranking suggestions.Methods in org.apache.lucene.search.spell with parameters of type SuggestWord Modifier and Type Method Description intSuggestWordFrequencyComparator. compare(SuggestWord first, SuggestWord second)intSuggestWordScoreComparator. compare(SuggestWord first, SuggestWord second)protected booleanSuggestWordQueue. lessThan(SuggestWord wa, SuggestWord wb)Method parameters in org.apache.lucene.search.spell with type arguments of type SuggestWord Modifier and Type Method Description voidDirectSpellChecker. setComparator(Comparator<SuggestWord> comparator)Set the comparator for sorting suggestions.voidSpellChecker. setComparator(Comparator<SuggestWord> comparator)Sets theComparatorfor theSuggestWordQueue.Constructor parameters in org.apache.lucene.search.spell with type arguments of type SuggestWord Constructor Description 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.SuggestWordQueue(int size, Comparator<SuggestWord> comparator)Specify the size of the queue and the comparator to use for sorting.
-