Class GermanStemFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Unwrappable<TokenStream>

public final class GermanStemFilter extends TokenFilter
A TokenFilter that stems German words.

It supports a table of words that should not be stemmed at all. The stemmer used can be changed at runtime after the filter object is created (as long as it is a GermanStemmer).

To prevent terms from being stemmed use an instance of SetKeywordMarkerFilter or a custom TokenFilter that sets the KeywordAttribute before this TokenStream.

See Also:
  • Constructor Details

  • Method Details

    • incrementToken

      public boolean incrementToken() throws IOException
      Specified by:
      incrementToken in class TokenStream
      Returns:
      Returns true for next token in the stream, or false at EOS
      Throws:
      IOException
    • setStemmer

      public void setStemmer(org.apache.lucene.analysis.de.GermanStemmer stemmer)
      Set a alternative/custom GermanStemmer for this filter.