Class DoubleMetaphoneFilterFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
org.apache.lucene.analysis.util.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.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DoubleMetaphoneFilterFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(TokenStream input) Transform the specified input TokenStreamMethods inherited from class org.apache.lucene.analysis.util.TokenFilterFactory
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFiltersMethods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
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
-
-
Method Details
-
create
Description copied from class:TokenFilterFactoryTransform the specified input TokenStream- Specified by:
createin classTokenFilterFactory
-