Package | Description |
---|---|
org.apache.lucene.search.suggest.fst |
Finite-state based autosuggest.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.ArrayList<FSTCompletion.Completion> |
FSTCompletion.EMPTY_RESULT
An empty result.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<FSTCompletion.Completion> |
FSTCompletion.lookup(java.lang.CharSequence key,
int num)
Lookup suggestions to
key . |
private java.util.List<FSTCompletion.Completion> |
FSTCompletion.lookupSortedAlphabetically(BytesRef key,
int num)
Lookup suggestions sorted alphabetically if weights are not
constant.
|
private java.util.ArrayList<FSTCompletion.Completion> |
FSTCompletion.lookupSortedByWeight(BytesRef key,
int num,
boolean collectAll)
Lookup suggestions sorted by weight (descending order).
|
Modifier and Type | Method and Description |
---|---|
int |
FSTCompletion.Completion.compareTo(FSTCompletion.Completion o) |
Modifier and Type | Method and Description |
---|---|
private boolean |
FSTCompletion.checkExistingAndReorder(java.util.ArrayList<FSTCompletion.Completion> list,
BytesRef key)
Checks if the list of
Lookup.LookupResult s already has a
key . |
private boolean |
FSTCompletion.collect(java.util.List<FSTCompletion.Completion> res,
int num,
int bucket,
BytesRef output,
FST.Arc<java.lang.Object> arc)
Recursive collect lookup results from the automaton subgraph starting at
arc . |