<!> Solr3.5 To configure the Hunspell stemmer in Solr, you need to download the
.aff files for your language(s) and then add the HunspellStemFilterFactory to your analysis, like this (british):
dictionary parameter optionally takes a comma-separated list of dictionaries, in which case all will be loaded, in the order specified. This lets you maintain your own custom additions without needing to edit the originals. We encourage your to contribute your changes/additions back to the maintainers of the original dictionaries.
ignoreCase parameter allows case insensitive matching of the dictionaries, which can be useful to stem variations for proper names such as Apache/Apaches. Default value is
An example of how Hunspell may be more accurate than the Snowball stemmer, from Norwegian:
Note that Hunspell's suitability for stemming purposes will vary depending on the quality of the dictionaries and affix files. Always test the quality of various stemmers before deciding on which to choose for your language. Another potential disadvantage with a dictionary based stemmer is that it only works for words listed in the dictionary, so be prepared to invest some time in adding new or domain specific vocabulary to the dictionaries.