Class HunspellStemFilterFactory

  • All Implemented Interfaces:
    ResourceLoaderAware

    public class HunspellStemFilterFactory
    extends TokenFilterFactory
    implements ResourceLoaderAware
    TokenFilterFactory that creates instances of HunspellStemFilter. Example config for British English:
     <filter class="solr.HunspellStemFilterFactory"
             dictionary="en_GB.dic,my_custom.dic"
             affix="en_GB.aff"
             ignoreCase="false"
             longestOnly="false" />
    Both parameters dictionary and affix are mandatory. Dictionaries for many languages are available through the OpenOffice project.

    See http://wiki.apache.org/solr/Hunspell

    Since:
    3.5.0
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "hunspellStem"