public final class LengthFilter extends TokenFilter
AttributeSource.AttributeFactory, AttributeSource.Stateinput| Constructor and Description |
|---|
LengthFilter(TokenStream in,
int min,
int max)
Build a filter that removes words that are too long or too
short from the text.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken()
Returns the next input Token whose term() is the right len
|
close, end, resetgetOnlyUseNewAPI, next, next, setOnlyUseNewAPIaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, restoreState, toStringpublic LengthFilter(TokenStream in, int min, int max)
public final boolean incrementToken()
throws IOException
incrementToken in class TokenStreamNote that this method will be defined abstract in Lucene 3.0.
IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.