Class MockTokenFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class MockTokenFilter
    extends TokenFilter
    A tokenfilter for testing that removes terms accepted by a DFA.
    • Union a list of singletons to act like a stopfilter.
    • Use the complement to act like a keepwordfilter
    • Use a regex like .{12,} to act like a lengthfilter