org.apache.solr.spelling.suggest.fst
Class FuzzyLookupFactory

java.lang.Object
  extended by org.apache.solr.spelling.suggest.LookupFactory
      extended by org.apache.solr.spelling.suggest.fst.FuzzyLookupFactory

public class FuzzyLookupFactory
extends LookupFactory

Factory for FuzzySuggester

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
static String MAX_EDITS
          Maximum number of edits allowed, used by LevenshteinAutomata.toAutomaton(int)
static String MIN_FUZZY_LENGTH
          Minimum length of lookup key before any edits are allowed for the suggestions
static String NON_FUZZY_PREFIX
          Length of common (non-fuzzy) prefix for the suggestions
static String TRANSPOSITIONS
          If transpositions are allowed, Fuzzy suggestions will be computed based on a primitive edit operation.
 
Constructor Summary
FuzzyLookupFactory()
           
 
Method Summary
 Lookup create(NamedList params, SolrCore core)
           
 String storeFileName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_EDITS

public static final String MAX_EDITS
Maximum number of edits allowed, used by LevenshteinAutomata.toAutomaton(int)

See Also:
Constant Field Values

TRANSPOSITIONS

public static final String TRANSPOSITIONS
If transpositions are allowed, Fuzzy suggestions will be computed based on a primitive edit operation. If it is false, it will be based on the classic Levenshtein algorithm.

See Also:
Constant Field Values

NON_FUZZY_PREFIX

public static final String NON_FUZZY_PREFIX
Length of common (non-fuzzy) prefix for the suggestions

See Also:
Constant Field Values

MIN_FUZZY_LENGTH

public static final String MIN_FUZZY_LENGTH
Minimum length of lookup key before any edits are allowed for the suggestions

See Also:
Constant Field Values
Constructor Detail

FuzzyLookupFactory

public FuzzyLookupFactory()
Method Detail

create

public Lookup create(NamedList params,
                     SolrCore core)
Specified by:
create in class LookupFactory

storeFileName

public String storeFileName()
Specified by:
storeFileName in class LookupFactory


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.