public final class TypeTokenFilter extends FilteringTokenFilter
AttributeSource.AttributeFactory, AttributeSource.Stateinput| Constructor and Description |
|---|
TypeTokenFilter(boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes) |
TypeTokenFilter(boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes,
boolean useWhiteList) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept()
By default accept the token if its type is not a stop type.
|
getEnablePositionIncrements, incrementToken, reset, setEnablePositionIncrementsclose, endaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic TypeTokenFilter(boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes,
boolean useWhiteList)
public TypeTokenFilter(boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes)
protected boolean accept()
throws IOException
accept in class FilteringTokenFilterIOException