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, reloadTokenFilters
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLines, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, setLuceneMatchVersion, splitFileNames
public 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 AbstractAnalysisFactory
public DoubleMetaphoneFilter create(TokenStream input)
create
in class TokenFilterFactory
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.