public final class KeepWordFilter extends FilteringTokenFilter
AttributeSource.StateinputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description | 
|---|
KeepWordFilter(TokenStream in,
              CharArraySet words)
Create a new  
KeepWordFilter. | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
accept()  | 
end, incrementToken, resetcloseaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic KeepWordFilter(TokenStream in, CharArraySet words)
KeepWordFilter.
 NOTE: The words set passed to this constructor will be directly used by this filter and should not be modified.
in - the TokenStream to consumewords - the words to keeppublic boolean accept()
accept in class FilteringTokenFilterCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.