Class KeywordRepeatFilterFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
org.apache.lucene.analysis.util.TokenFilterFactory
org.apache.lucene.analysis.miscellaneous.KeywordRepeatFilterFactory
Factory for
KeywordRepeatFilter.
Since KeywordRepeatFilter emits two tokens for every input token, and any tokens that aren't transformed
later in the analysis chain will be in the document twice. Therefore, consider adding
RemoveDuplicatesTokenFilterFactory later in the analysis chain.-
Field Summary
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new KeywordRepeatFilterFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(TokenStream input) Transform the specified input TokenStreamMethods inherited from class org.apache.lucene.analysis.util.TokenFilterFactory
availableTokenFilters, forName, lookupClass, reloadTokenFiltersMethods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
get, get, get, get, get, getChar, getClassArg, getLuceneMatchVersion, getOriginalArgs, getSet, isExplicitLuceneMatchVersion, require, require, require, requireChar, setExplicitLuceneMatchVersion
-
Constructor Details
-
KeywordRepeatFilterFactory
Creates a new KeywordRepeatFilterFactory
-
-
Method Details
-
create
Description copied from class:TokenFilterFactoryTransform the specified input TokenStream- Specified by:
createin classTokenFilterFactory
-