Class FixedShingleFilterFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
org.apache.lucene.analysis.util.TokenFilterFactory
org.apache.lucene.analysis.shingle.FixedShingleFilterFactory
Factory for
FixedShingleFilter
Parameters are:
- shingleSize - how many tokens should be combined into each shingle (default: 2)
- tokenSeparator - how tokens should be joined together in the shingle (default: space)
- fillerToken - what should be added in place of stop words (default: _ )
- Since:
- 7.4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringstatic final StringSPI nameprivate final intprivate final StringFields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion -
Constructor Summary
Constructors -
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:
-
shingleSize
private final int shingleSize -
tokenSeparator
-
fillerToken
-
-
Constructor Details
-
FixedShingleFilterFactory
-
-
Method Details
-
create
Description copied from class:TokenFilterFactoryTransform the specified input TokenStream- Specified by:
createin classTokenFilterFactory
-