Class LengthFilter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Unwrappable<TokenStream>

    public final class LengthFilter
    extends FilteringTokenFilter
    Removes words that are too long or too short from the stream.

    Note: Length is calculated as the number of UTF-16 code units.