Uses of Class
org.apache.lucene.search.spell.SuggestWord
-
Uses of SuggestWord in org.apache.lucene.search.spell
Modifier and TypeFieldDescriptionfinal SuggestWord
CombineSuggestion.suggestion
The word combination suggestionModifier and TypeFieldDescriptionstatic final Comparator<SuggestWord>
SuggestWordQueue.DEFAULT_COMPARATOR
Default comparator: score then frequency.Modifier and TypeMethodDescriptionDirectSpellChecker.suggestSimilar
(Term term, int numSug, IndexReader ir) DirectSpellChecker.suggestSimilar
(Term term, int numSug, IndexReader ir, SuggestMode suggestMode) DirectSpellChecker.suggestSimilar
(Term term, int numSug, IndexReader ir, SuggestMode suggestMode, float accuracy) Suggest similar words.SuggestWord[][]
WordBreakSpellChecker.suggestWordBreaks
(Term term, int maxSuggestions, IndexReader ir, SuggestMode suggestMode, WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod) Generate suggestions by breaking the passed-in term into multiple words.Modifier and TypeMethodDescriptionDirectSpellChecker.getComparator()
Get the current comparator in use.SpellChecker.getComparator()
Gets the comparator in use for ranking suggestions.Modifier and TypeMethodDescriptionint
SuggestWordFrequencyComparator.compare
(SuggestWord first, SuggestWord second) int
SuggestWordScoreComparator.compare
(SuggestWord first, SuggestWord second) protected final boolean
SuggestWordQueue.lessThan
(SuggestWord wa, SuggestWord wb) Modifier and TypeMethodDescriptionvoid
DirectSpellChecker.setComparator
(Comparator<SuggestWord> comparator) Set the comparator for sorting suggestions.void
SpellChecker.setComparator
(Comparator<SuggestWord> comparator) Sets theComparator
for theSuggestWordQueue
.ModifierConstructorDescriptionCombineSuggestion
(SuggestWord suggestion, int[] originalTermIndexes) Creates a new CombineSuggestion from asuggestion
and an array of term ids (referencing the indexes to the original terms that form this combined suggestion)ModifierConstructorDescriptionSpellChecker
(Directory spellIndex, StringDistance sd, Comparator<SuggestWord> comparator) Use the given directory as a spell checker index with the givenStringDistance
measure and the givenComparator
for sorting the results.SuggestWordQueue
(int size, Comparator<SuggestWord> comparator) Specify the size of the queue and the comparator to use for sorting.