Class HunspellStemFilterFactory

  • All Implemented Interfaces:

    public class HunspellStemFilterFactory
    extends TokenFilterFactory
    implements ResourceLoaderAware
    TokenFilterFactory that creates instances of HunspellStemFilter. Example config for British English including a custom dictionary, case insensitive matching:
     <filter class="solr.HunspellStemFilterFactory"
        ignoreCase="true" />
    Both parameters dictionary and affix are mandatory.
    The parameter ignoreCase (true/false) controls whether matching is case sensitive or not. Default false.
    The parameter strictAffixParsing (true/false) controls whether the affix parsing is strict or not. Default true. If strict an error while reading an affix rule causes a ParseException, otherwise is ignored.
    Dictionaries for many languages are available through the OpenOffice project. See
    • Constructor Detail

      • HunspellStemFilterFactory

        public HunspellStemFilterFactory​(java.util.Map<java.lang.String,​java.lang.String> args)
        Creates a new HunspellStemFilterFactory
    • Method Detail

      • inform

        public void inform​(ResourceLoader loader)
        Loads the hunspell dictionary and affix files defined in the configuration
        Specified by:
        inform in interface ResourceLoaderAware
        loader - ResourceLoader used to load the files