Class DoubleMetaphoneFilterFactory
java.lang.Object
org.apache.lucene.analysis.AbstractAnalysisFactory
org.apache.lucene.analysis.TokenFilterFactory
org.apache.lucene.analysis.phonetic.DoubleMetaphoneFilterFactory
Factory for
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>- Since:
- 3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intdefault maxCodeLength if not specifiedprivate final booleanstatic final Stringparameter name: true if encoded tokens should be added as synonymsstatic final Stringparameter name: restricts the length of the phonetic codeprivate final intstatic final StringSPI nameFields inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion -
Constructor Summary
ConstructorsConstructorDescriptionDefault ctor for compatibility with SPICreates a new DoubleMetaphoneFilterFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(TokenStream input) Transform the specified input TokenStreamMethods inherited from class org.apache.lucene.analysis.TokenFilterFactory
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFiltersMethods inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
defaultCtorException, 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, splitAt, splitFileNames
-
Field Details
-
NAME
SPI name- See Also:
-
INJECT
parameter name: true if encoded tokens should be added as synonyms- See Also:
-
MAX_CODE_LENGTH
parameter name: restricts the length of the phonetic code- See Also:
-
DEFAULT_MAX_CODE_LENGTH
public static final int DEFAULT_MAX_CODE_LENGTHdefault maxCodeLength if not specified- See Also:
-
inject
private final boolean inject -
maxCodeLength
private final int maxCodeLength
-
-
Constructor Details
-
DoubleMetaphoneFilterFactory
Creates a new DoubleMetaphoneFilterFactory -
DoubleMetaphoneFilterFactory
public DoubleMetaphoneFilterFactory()Default ctor for compatibility with SPI
-
-
Method Details
-
create
Description copied from class:TokenFilterFactoryTransform the specified input TokenStream- Specified by:
createin classTokenFilterFactory
-