public class DoubleMetaphoneFilterFactory extends TokenFilterFactory
DoubleMetaphoneFilter.
<fieldType name="text_dblmtphn" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="true" maxCodeLength="4"/>
</analyzer>
</fieldType>| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_CODE_LENGTH
default maxCodeLength if not specified
|
static String |
INJECT
parameter name: true if encoded tokens should be added as synonyms
|
static String |
MAX_CODE_LENGTH
parameter name: restricts the length of the phonetic code
|
args, luceneMatchVersion| Constructor and Description |
|---|
DoubleMetaphoneFilterFactory()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleMetaphoneFilter |
create(TokenStream input) |
void |
init(Map<String,String> args) |
availableTokenFilters, forName, lookupClass, reloadTokenFiltersassureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLines, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, setLuceneMatchVersion, splitFileNamespublic static final String INJECT
public static final String MAX_CODE_LENGTH
public static final int DEFAULT_MAX_CODE_LENGTH
public DoubleMetaphoneFilterFactory()
AbstractAnalysisFactory for initialization lifecycle.public void init(Map<String,String> args)
init in class AbstractAnalysisFactorypublic DoubleMetaphoneFilter create(TokenStream input)
create in class TokenFilterFactoryCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.