Class SnowballTokenFilter


public final class SnowballTokenFilter extends TokenFilter
A filter that stems words using a Snowball-generated stemmer. This token filter is implemented using Apache Lucene.
  • Constructor Details

    • SnowballTokenFilter

      public SnowballTokenFilter(String name, SnowballTokenFilterLanguage language)
      Constructor of TokenFilter.
      name - The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.
      language - The language to use. Possible values include: 'Armenian', 'Basque', 'Catalan', 'Danish', 'Dutch', 'English', 'Finnish', 'French', 'German', 'German2', 'Hungarian', 'Italian', 'Kp', 'Lovins', 'Norwegian', 'Porter', 'Portuguese', 'Romanian', 'Russian', 'Spanish', 'Swedish', 'Turkish'
  • Method Details

    • getLanguage

      public SnowballTokenFilterLanguage getLanguage()
      Get the language property: The language to use. Possible values include: 'Armenian', 'Basque', 'Catalan', 'Danish', 'Dutch', 'English', 'Finnish', 'French', 'German', 'German2', 'Hungarian', 'Italian', 'Kp', 'Lovins', 'Norwegian', 'Porter', 'Portuguese', 'Romanian', 'Russian', 'Spanish', 'Swedish', 'Turkish'.
      the language value.