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
|
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, forName, lookupClass, reloadTokenFilters
get, 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, splitFileNames
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 TokenFilterFactory
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.