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
- SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
- "doubleMetaphone"
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intdefault maxCodeLength if not specifiedstatic final Stringparameter name: true if encoded tokens should be added as synonymsstatic final Stringparameter name: restricts the length of the phonetic codestatic 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
Methods 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:
-
-
Constructor Details
-
DoubleMetaphoneFilterFactory
Creates a new DoubleMetaphoneFilterFactory -
DoubleMetaphoneFilterFactory
public DoubleMetaphoneFilterFactory()Default ctor for compatibility with SPI
-
-
Method Details
-
create
- Specified by:
createin classTokenFilterFactory
-