Uses of Class
org.apache.lucene.search.suggest.Lookup.LookupResult
Packages that use Lookup.LookupResult
Package
Description
Support for Autocomplete/Autosuggest
Analyzer based autosuggest.
Finite-state based autosuggest.
Ternary Search Tree based autosuggest.
-
Uses of Lookup.LookupResult in org.apache.lucene.search.suggest
Methods in org.apache.lucene.search.suggest that return Lookup.LookupResultModifier and TypeMethodDescriptionLookup.LookupPriorityQueue.getResults()
Returns the top N results in descending order.Methods in org.apache.lucene.search.suggest that return types with arguments of type Lookup.LookupResultModifier and TypeMethodDescriptionLookup.lookup
(CharSequence key, boolean onlyMorePopular, int num) Look up a key and return possible completion for this key.abstract List
<Lookup.LookupResult> Lookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) Look up a key and return possible completion for this key.Lookup.lookup
(CharSequence key, BooleanQuery contextFilerQuery, int num, boolean allTermsRequired, boolean doHighlight) Look up a key and return possible completion for this key.Methods in org.apache.lucene.search.suggest with parameters of type Lookup.LookupResultModifier and TypeMethodDescriptionint
Lookup.LookupResult.compareTo
(Lookup.LookupResult o) Compare alphabetically.protected boolean
Lookup.LookupPriorityQueue.lessThan
(Lookup.LookupResult a, Lookup.LookupResult b) -
Uses of Lookup.LookupResult in org.apache.lucene.search.suggest.analyzing
Fields in org.apache.lucene.search.suggest.analyzing with type parameters of type Lookup.LookupResultModifier and TypeFieldDescriptionprivate static Comparator
<Lookup.LookupResult> BlendedInfixSuggester.LOOKUP_COMP
Methods in org.apache.lucene.search.suggest.analyzing that return Lookup.LookupResultModifier and TypeMethodDescriptionprivate Lookup.LookupResult
AnalyzingSuggester.getLookupResult
(Long output1, BytesRef output2, CharsRefBuilder spare) Methods in org.apache.lucene.search.suggest.analyzing that return types with arguments of type Lookup.LookupResultModifier and TypeMethodDescriptionprotected List
<Lookup.LookupResult> AnalyzingInfixSuggester.createResults
(IndexSearcher searcher, TopFieldDocs hits, int num, CharSequence charSequence, boolean doHighlight, Set<String> matchedTokens, String prefixToken) Create the results based on the search hits.protected List
<Lookup.LookupResult> BlendedInfixSuggester.createResults
(IndexSearcher searcher, TopFieldDocs hits, int num, CharSequence key, boolean doHighlight, Set<String> matchedTokens, String prefixToken) AnalyzingInfixSuggester.lookup
(CharSequence key, int num, boolean allTermsRequired, boolean doHighlight) Lookup, without any context.AnalyzingInfixSuggester.lookup
(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) Retrieve suggestions, specifying whether all terms must match (allTermsRequired
) and whether the hits should be highlighted (doHighlight
).AnalyzingInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) AnalyzingInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight) Lookup, with context but without booleans.AnalyzingInfixSuggester.lookup
(CharSequence key, BooleanQuery contextQuery, int num, boolean allTermsRequired, boolean doHighlight) This is an advanced method providing the capability to send down to the suggester any arbitrary lucene query to be used to filter the result of the suggesterAnalyzingSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) BlendedInfixSuggester.lookup
(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) BlendedInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) BlendedInfixSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, int num, boolean allTermsRequired, boolean doHighlight) BlendedInfixSuggester.lookup
(CharSequence key, BooleanQuery contextQuery, int num, boolean allTermsRequired, boolean doHighlight) FreeTextSuggester.lookup
(CharSequence key, boolean onlyMorePopular, int num) FreeTextSuggester.lookup
(CharSequence key, int num) Lookup, without any context.FreeTextSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) FreeTextSuggester.lookup
(CharSequence key, Set<BytesRef> contexts, int num) Retrieve suggestions.Methods in org.apache.lucene.search.suggest.analyzing with parameters of type Lookup.LookupResultModifier and TypeMethodDescriptionprivate static void
BlendedInfixSuggester.boundedTreeAdd
(TreeSet<Lookup.LookupResult> results, Lookup.LookupResult result, int num) Add an element to the tree respecting a size limitint
BlendedInfixSuggester.LookUpComparator.compare
(Lookup.LookupResult o1, Lookup.LookupResult o2) Method parameters in org.apache.lucene.search.suggest.analyzing with type arguments of type Lookup.LookupResultModifier and TypeMethodDescriptionprivate static void
BlendedInfixSuggester.boundedTreeAdd
(TreeSet<Lookup.LookupResult> results, Lookup.LookupResult result, int num) Add an element to the tree respecting a size limit -
Uses of Lookup.LookupResult in org.apache.lucene.search.suggest.fst
Methods in org.apache.lucene.search.suggest.fst that return types with arguments of type Lookup.LookupResultModifier and TypeMethodDescriptionFSTCompletionLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean higherWeightsFirst, int num) WFSTCompletionLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num) -
Uses of Lookup.LookupResult in org.apache.lucene.search.suggest.tst
Methods in org.apache.lucene.search.suggest.tst that return types with arguments of type Lookup.LookupResultModifier and TypeMethodDescriptionTSTLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num)