Package | Description |
---|---|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.search.suggest.fst |
Finite-state based autosuggest.
|
org.apache.lucene.search.suggest.jaspell |
JaSpell-based autosuggest.
|
org.apache.lucene.search.suggest.tst |
Ternary Search Tree based autosuggest.
|
Modifier and Type | Method and Description |
---|---|
Lookup.LookupResult[] |
Lookup.LookupPriorityQueue.getResults()
Returns the top N results in descending order.
|
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
Lookup.lookup(CharSequence key,
boolean onlyMorePopular,
int num)
Look up a key and return possible completion for this key.
|
List<Lookup.LookupResult> |
Lookup.lookup(CharSequence key,
BooleanQuery contextFilerQuery,
int num,
boolean allTermsRequired,
boolean doHighlight)
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.
|
Modifier and Type | Method and Description |
---|---|
int |
Lookup.LookupResult.compareTo(Lookup.LookupResult o)
Compare alphabetically.
|
protected boolean |
Lookup.LookupPriorityQueue.lessThan(Lookup.LookupResult a,
Lookup.LookupResult b) |
Modifier and Type | Method and Description |
---|---|
protected List<Lookup.LookupResult> |
BlendedInfixSuggester.createResults(IndexSearcher searcher,
TopFieldDocs hits,
int num,
CharSequence key,
boolean doHighlight,
Set<String> matchedTokens,
String prefixToken) |
protected 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.
|
List<Lookup.LookupResult> |
FreeTextSuggester.lookup(CharSequence key,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
BooleanQuery contextQuery,
int num,
boolean allTermsRequired,
boolean doHighlight) |
List<Lookup.LookupResult> |
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 suggester
|
List<Lookup.LookupResult> |
FreeTextSuggester.lookup(CharSequence key,
int num)
Lookup, without any context.
|
List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(CharSequence key,
int num,
boolean allTermsRequired,
boolean doHighlight)
Lookup, without any context.
|
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
Map<BytesRef,BooleanClause.Occur> contextInfo,
int num,
boolean allTermsRequired,
boolean doHighlight) |
List<Lookup.LookupResult> |
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 ). |
List<Lookup.LookupResult> |
FreeTextSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
AnalyzingSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
FreeTextSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
int num)
Retrieve suggestions.
|
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
int num,
boolean allTermsRequired,
boolean doHighlight) |
List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
int num,
boolean allTermsRequired,
boolean doHighlight)
Lookup, with context but without booleans.
|
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
FSTCompletionLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean higherWeightsFirst,
int num) |
List<Lookup.LookupResult> |
WFSTCompletionLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
JaspellLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
TSTLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.