public final class StopFilter extends StopFilter
This class moved to Lucene Core, but a reference in the analysis/common
module
is preserved for documentation purposes and consistency with filter factory.
StopFilter
,
StopFilterFactory
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
StopFilter(TokenStream in,
CharArraySet stopWords)
Constructs a filter which removes words from the input TokenStream that are
named in the Set.
|
accept, makeStopSet, makeStopSet, makeStopSet, makeStopSet
end, incrementToken, reset
close
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public StopFilter(TokenStream in, CharArraySet stopWords)
in
- Input streamstopWords
- A CharArraySet
representing the stopwords.StopFilter.makeStopSet(java.lang.String...)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.