public final class TrimFilter extends TokenFilter
As of Lucene 4.4, this filter does not support updateOffsets=true anymore as it can lead to broken token streams.
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DEFAULT_ATTRIBUTE_FACTORY
Constructor and Description |
---|
TrimFilter(TokenStream in)
Create a new
TrimFilter on top of in . |
TrimFilter(Version version,
TokenStream in)
Deprecated.
|
TrimFilter(Version version,
TokenStream in,
boolean updateOffsets)
Deprecated.
Offset updates are not supported anymore as of Lucene 4.4.
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
close, end, reset
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
@Deprecated public TrimFilter(Version version, TokenStream in, boolean updateOffsets)
TrimFilter
.version
- the Lucene match versionin
- the stream to consumeupdateOffsets
- whether to update offsetspublic TrimFilter(TokenStream in)
TrimFilter
on top of in
.@Deprecated public TrimFilter(Version version, TokenStream in)
TrimFilter(TokenStream)
public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.