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
|
static String |
NAME
SPI name
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion| Constructor and Description |
|---|
DoubleMetaphoneFilterFactory(Map<String,String> args)
Creates a new DoubleMetaphoneFilterFactory
|
| Modifier and Type | Method and Description |
|---|---|
DoubleMetaphoneFilter |
create(TokenStream input) |
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFiltersget, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNamespublic static final String NAME
public static final String INJECT
public static final String MAX_CODE_LENGTH
public static final int DEFAULT_MAX_CODE_LENGTH
public DoubleMetaphoneFilter create(TokenStream input)
create in class TokenFilterFactoryCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.