A
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:
- the array of words / tokens to keep.
- an reference to a file containing the words
/ tokens to keep. Note: this is an alternative to if
both are set an exception will be thrown.
-
true
iff the filter should
maintain position increments for dropped tokens. The default is
true
.
- to use case sensitive keep words. The
default is
false
which corresponds to case-sensitive.