Class KeepWordFilter

    • Constructor Detail

      • KeepWordFilter

        public KeepWordFilter​(TokenStream in,
                              CharArraySet words)
        Create a new KeepWordFilter.

        NOTE: The words set passed to this constructor will be directly used by this filter and should not be modified.

        Parameters:
        in - the TokenStream to consume
        words - the words to keep