public final class TypeTokenFilter extends FilteringTokenFilter
AttributeSource.StateversioninputDEFAULT_TOKEN_ATTRIBUTE_FACTORYDEFAULT_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
TypeTokenFilter(TokenStream input,
Set<String> stopTypes)
Create a new
TypeTokenFilter that filters tokens out
(useWhiteList=false). |
TypeTokenFilter(TokenStream input,
Set<String> stopTypes,
boolean useWhiteList)
Create a new
TypeTokenFilter. |
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)
Deprecated.
|
TypeTokenFilter(Version version,
TokenStream input,
Set<String> stopTypes,
boolean useWhiteList)
Deprecated.
|
| 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(TokenStream input, Set<String> stopTypes, boolean useWhiteList)
TypeTokenFilter.input - 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 out@Deprecated public TypeTokenFilter(Version version, TokenStream input, Set<String> stopTypes, boolean useWhiteList)
TypeTokenFilter(TokenStream,Set,boolean)public TypeTokenFilter(TokenStream input, Set<String> stopTypes)
TypeTokenFilter that filters tokens out
(useWhiteList=false).@Deprecated public TypeTokenFilter(Version version, TokenStream input, Set<String> stopTypes)
TypeTokenFilter(TokenStream,Set)protected boolean accept()
accept in class FilteringTokenFilterCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.