Class KeywordRepeatFilterFactory

public final class KeywordRepeatFilterFactory extends TokenFilterFactory
Factory for KeywordRepeatFilter.

Since KeywordRepeatFilter emits two tokens for every input token, and any tokens that aren't transformed later in the analysis chain will be in the document twice. Therefore, consider adding RemoveDuplicatesTokenFilterFactory later in the analysis chain.

SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
  • Field Details

  • Constructor Details

    • KeywordRepeatFilterFactory

      public KeywordRepeatFilterFactory(Map<String,String> args)
      Creates a new KeywordRepeatFilterFactory
    • KeywordRepeatFilterFactory

      public KeywordRepeatFilterFactory()
      Default ctor for compatibility with SPI
  • Method Details