@AnalysisSettingsRequired public class KeepWordFilterFactory extends AbstractTokenFilterFactory
TokenFilterFactory
for KeepWordFilter
. This filter only
keep tokens that are contained in the term set configured via
setting. This filter acts like an inverse stop
filter.
Configuration options:
true
iff the filter should
maintain position increments for dropped tokens. The default is
true
.false
which corresponds to case-sensitive.StopTokenFilterFactory
version
deprecationLogger, index, indexSettings, logger
Constructor and Description |
---|
KeepWordFilterFactory(Index index,
IndexSettingsService indexSettingsService,
Environment env,
String name,
Settings settings) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.TokenStream |
create(org.apache.lucene.analysis.TokenStream tokenStream) |
name, version
index, indexSettings
@Inject public KeepWordFilterFactory(Index index, IndexSettingsService indexSettingsService, Environment env, String name, Settings settings)
Copyright © 2009–2016. All rights reserved.