Uses of Class
org.apache.lucene.search.suggest.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
Modifier and TypeMethodDescriptionLookup.LookupPriorityQueue.getResults()
Returns the top N results in descending order.Modifier 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.Modifier 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
Modifier 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. -
Uses of Lookup.LookupResult in org.apache.lucene.search.suggest.fst
Modifier 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
Modifier and TypeMethodDescriptionTSTLookup.lookup
(CharSequence key, Set<BytesRef> contexts, boolean onlyMorePopular, int num)