Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » analysis » [javadoc | source]
org.apache.lucene.analysis
public final class: LengthFilter [javadoc | source]
java.lang.Object
   org.apache.lucene.analysis.TokenStream
      org.apache.lucene.analysis.TokenFilter
         org.apache.lucene.analysis.LengthFilter
Removes words that are too long and too short from the stream.
Field Summary
final  int min     
final  int max     
Fields inherited from org.apache.lucene.analysis.TokenFilter:
input
Constructor:
 public LengthFilter(TokenStream in,
    int min,
    int max) 
    Build a filter that removes words that are too long or too short from the text.
Method from org.apache.lucene.analysis.LengthFilter Summary:
next
Methods from org.apache.lucene.analysis.TokenFilter:
close
Methods from org.apache.lucene.analysis.TokenStream:
close,   next,   next,   reset
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.analysis.LengthFilter Detail:
 public final Token next(Token result) throws IOException 
    Returns the next input Token whose termText() is the right len