public class FSTLookupFactory extends LookupFactory
FSTCompletionLookup
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXACT_MATCH_FIRST
If
true , exact suggestions are returned first, even if they are prefixes
of other strings in the automaton (possibly with larger weights). |
private static java.lang.String |
FILENAME
File name for the automaton.
|
static java.lang.String |
WEIGHT_BUCKETS
The number of separate buckets for weights (discretization).
|
Constructor and Description |
---|
FSTLookupFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.suggest.Lookup |
create(NamedList params,
SolrCore core) |
java.lang.String |
storeFileName() |
private static final java.lang.String FILENAME
public static final java.lang.String WEIGHT_BUCKETS
The number of buckets must be within [1, 255] range.
public static final java.lang.String EXACT_MATCH_FIRST
true
, exact suggestions are returned first, even if they are prefixes
of other strings in the automaton (possibly with larger weights).public org.apache.lucene.search.suggest.Lookup create(NamedList params, SolrCore core)
create
in class LookupFactory
public java.lang.String storeFileName()
storeFileName
in class LookupFactory