Class KeepWordTokenFilterDescriptor

  • All Implemented Interfaces:
    TokenFilterDescriptor

    public final class KeepWordTokenFilterDescriptor
    extends Object
    implements TokenFilterDescriptor
    A token filter that only keeps tokens with text contained in a predefined set of words.
    Since:
    7.0
    • Constructor Detail

      • KeepWordTokenFilterDescriptor

        public KeepWordTokenFilterDescriptor​(Collection<String> dictionary)
        Parameters:
        dictionary - list of common words