Uses of Class
org.apache.lucene.search.spell.SuggestWord
Packages that use SuggestWord
-
Uses of SuggestWord in org.apache.lucene.search.spell
Fields in org.apache.lucene.search.spell declared as SuggestWordModifier and TypeFieldDescriptionfinal SuggestWord
CombineSuggestion.suggestion
The word combination suggestion(package private) final SuggestWord[]
WordBreakSpellChecker.SuggestWordArrayWrapper.suggestWords
Fields in org.apache.lucene.search.spell with type parameters of type SuggestWordModifier and TypeFieldDescriptionprivate Comparator
<SuggestWord> DirectSpellChecker.comparator
the comparator to useprivate Comparator
<SuggestWord> SpellChecker.comparator
private Comparator
<SuggestWord> SuggestWordQueue.comparator
static final Comparator
<SuggestWord> SuggestWordQueue.DEFAULT_COMPARATOR
Default comparator: score then frequency.Methods in org.apache.lucene.search.spell that return SuggestWordModifier and TypeMethodDescriptionprivate SuggestWord
WordBreakSpellChecker.generateSuggestWord
(IndexReader ir, String fieldname, String text) private SuggestWord[]
WordBreakSpellChecker.newPrefix
(SuggestWord[] oldPrefix, SuggestWord append) private SuggestWord[]
WordBreakSpellChecker.newSuggestion
(SuggestWord[] prefix, SuggestWord append1, SuggestWord append2) DirectSpellChecker.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.Methods in org.apache.lucene.search.spell that return types with arguments of type SuggestWordModifier and TypeMethodDescriptionDirectSpellChecker.getComparator()
Get the current comparator in use.SpellChecker.getComparator()
Gets the comparator in use for ranking suggestions.Methods in org.apache.lucene.search.spell with parameters of type SuggestWordModifier and TypeMethodDescriptionint
SuggestWordFrequencyComparator.compare
(SuggestWord first, SuggestWord second) int
SuggestWordScoreComparator.compare
(SuggestWord first, SuggestWord second) private int
WordBreakSpellChecker.generateBreakUpSuggestions
(Term term, IndexReader ir, int numberBreaks, int maxSuggestions, int useMinSuggestionFrequency, SuggestWord[] prefix, Queue<WordBreakSpellChecker.SuggestWordArrayWrapper> suggestions, int totalEvaluations, WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod) protected final boolean
SuggestWordQueue.lessThan
(SuggestWord wa, SuggestWord wb) private SuggestWord[]
WordBreakSpellChecker.newPrefix
(SuggestWord[] oldPrefix, SuggestWord append) private SuggestWord[]
WordBreakSpellChecker.newSuggestion
(SuggestWord[] prefix, SuggestWord append1, SuggestWord append2) Method parameters in org.apache.lucene.search.spell with type arguments of type SuggestWordModifier and TypeMethodDescriptionvoid
DirectSpellChecker.setComparator
(Comparator<SuggestWord> comparator) Set the comparator for sorting suggestions.void
SpellChecker.setComparator
(Comparator<SuggestWord> comparator) Sets theComparator
for theSuggestWordQueue
.Constructors in org.apache.lucene.search.spell with parameters of type SuggestWordModifierConstructorDescriptionCombineSuggestion
(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)(package private)
SuggestWordArrayWrapper
(SuggestWord[] suggestWords) Constructor parameters in org.apache.lucene.search.spell with type arguments of type SuggestWordModifierConstructorDescriptionSpellChecker
(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.