org.apache.lucene.analysis
public final class LengthFilter extends TokenFilter
Version: $Id: LengthFilter.java 347992 2005-11-21 21:41:43Z dnaber $
Constructor Summary | |
---|---|
LengthFilter(TokenStream in, int min, int max)
Build a filter that removes words that are too long or too
short from the text. |
Method Summary | |
---|---|
Token | next()
Returns the next input Token whose termText() is the right len |