public final class TypeTokenFilter extends FilteringTokenFilter
AttributeSource.AttributeFactory, AttributeSource.Stateversioninput| Constructor and Description |
|---|
TypeTokenFilter(Version version,
boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes)
Deprecated.
enablePositionIncrements=false is not supported anymore as of Lucene 4.4.
|
TypeTokenFilter(Version version,
boolean enablePositionIncrements,
TokenStream input,
Set<String> stopTypes,
boolean useWhiteList)
Deprecated.
enablePositionIncrements=false is not supported anymore as of Lucene 4.4.
|
TypeTokenFilter(Version version,
TokenStream input,
Set<String> stopTypes)
Create a new
TypeTokenFilter that filters tokens out
(useWhiteList=false). |
TypeTokenFilter(Version version,
TokenStream input,
Set<String> stopTypes,
boolean useWhiteList)
Create a new
TypeTokenFilter. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept()
By default accept the token if its type is not a stop type.
|
end, getEnablePositionIncrements, incrementToken, reset, setEnablePositionIncrementscloseaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString@Deprecated public TypeTokenFilter(Version version, boolean enablePositionIncrements, TokenStream input, Set<String> stopTypes, boolean useWhiteList)
@Deprecated public TypeTokenFilter(Version version, boolean enablePositionIncrements, TokenStream input, Set<String> stopTypes)
public TypeTokenFilter(Version version, TokenStream input, Set<String> stopTypes, boolean useWhiteList)
TypeTokenFilter.version - the Lucene match versioninput - the TokenStream to consumestopTypes - the types to filteruseWhiteList - if true, then tokens whose type is in stopTypes will
be kept, otherwise they will be filtered outpublic TypeTokenFilter(Version version, TokenStream input, Set<String> stopTypes)
TypeTokenFilter that filters tokens out
(useWhiteList=false).protected boolean accept()
accept in class FilteringTokenFilterCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.