|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.spelling.suggest.LookupFactory
org.apache.solr.spelling.suggest.fst.FuzzyLookupFactory
public class FuzzyLookupFactory
Factory for FuzzySuggester
| Field Summary | |
|---|---|
static String |
MAX_EDITS
Maximum number of edits allowed, used by LevenshteinAutomata.toAutomaton(int)
in bytes or Unicode code points (if UNICODE_AWARE option is set to true). |
static String |
MIN_FUZZY_LENGTH
Minimum length of lookup key before any edits are allowed for the suggestions in bytes or Unicode code points (if UNICODE_AWARE option is set to true). |
static String |
NON_FUZZY_PREFIX
Length of common (non-fuzzy) prefix for the suggestions in bytes or Unicode code points (if UNICODE_AWARE option is set to true). |
static String |
TRANSPOSITIONS
If transpositions are allowed, Fuzzy suggestions will be computed based on a primitive edit operation. |
static String |
UNICODE_AWARE
If true, maxEdits, minFuzzyLength, transpositions and nonFuzzyPrefix
will be measured in Unicode code points (actual letters) instead of bytes. |
| Fields inherited from class org.apache.solr.spelling.suggest.LookupFactory |
|---|
DEFAULT_FILE_BASED_DICT |
| Constructor Summary | |
|---|---|
FuzzyLookupFactory()
|
|
| Method Summary | |
|---|---|
Lookup |
create(NamedList params,
SolrCore core)
Create a Lookup using config options in params and
current core |
String |
storeFileName()
Returns the filename in which the in-memory data structure is stored |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UNICODE_AWARE
true, maxEdits, minFuzzyLength, transpositions and nonFuzzyPrefix
will be measured in Unicode code points (actual letters) instead of bytes.
public static final String MAX_EDITS
LevenshteinAutomata.toAutomaton(int)
in bytes or Unicode code points (if UNICODE_AWARE option is set to true).
public static final String TRANSPOSITIONS
UNICODE_AWARE option is set to true).
public static final String NON_FUZZY_PREFIX
UNICODE_AWARE option is set to true).
public static final String MIN_FUZZY_LENGTH
UNICODE_AWARE option is set to true).
| Constructor Detail |
|---|
public FuzzyLookupFactory()
| Method Detail |
|---|
public Lookup create(NamedList params,
SolrCore core)
LookupFactoryparams and
current core
create in class LookupFactorypublic String storeFileName()
LookupFactoryReturns the filename in which the in-memory data structure is stored
NOTE: not allLookup implementations store in-memory data structures
storeFileName in class LookupFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||