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
    • Field Detail

      • PARAM_DICTIONARY

        private static final java.lang.String PARAM_DICTIONARY
        See Also:
        Constant Field Values
      • PARAM_IGNORE_CASE

        private static final java.lang.String PARAM_IGNORE_CASE
        See Also:
        Constant Field Values
      • PARAM_LONGEST_ONLY

        private static final java.lang.String PARAM_LONGEST_ONLY
        See Also:
        Constant Field Values
      • dictionaryFiles

        private final java.lang.String dictionaryFiles
      • affixFile

        private final java.lang.String affixFile
      • ignoreCase

        private final boolean ignoreCase
      • longestOnly

        private final boolean longestOnly
    • Constructor Detail

      • HunspellStemFilterFactory

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

        public HunspellStemFilterFactory()
        Default ctor for compatibility with SPI