org.apache.lucene.analysis
public final class LengthFilter extends TokenFilter
input
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 |
---|---|
Token |
next(Token result)
Returns the next input Token whose termText() is the right len
|
close
next, reset
public LengthFilter(TokenStream in, int min, int max)
public final Token next(Token result) throws IOException
next
in class TokenStream
result
- a Token that may or may not be used to returnIOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.