[ https://issues.apache.org/jira/browse/SOLR-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13804030#comment-13804030 ]
Mathias H. commented on SOLR-2968: ---------------------------------- I now solved the problem in my special case. I wrote a custom TokenFilterFactory that wraps the DictionaryCompoundWordTokenFilterFactory / HunspellStemFilterFactory and caches the factories, so they will be reused across indexes and fieldtypes. > Hunspell very high memory use when loading dictionary > ----------------------------------------------------- > > Key: SOLR-2968 > URL: https://issues.apache.org/jira/browse/SOLR-2968 > Project: Solr > Issue Type: Bug > Affects Versions: 3.5 > Reporter: Maciej Lisiewski > Priority: Minor > Attachments: patch.txt > > > Hunspell stemmer requires gigantic (for the task) amounts of memory to load > dictionary/rules files. > For example loading a 4.5 MB polish dictionary (with empty index!) will cause > whole core to crash with various out of memory errors unless you set max heap > size close to 2GB or more. > By comparison Stempel using the same dictionary file works just fine with 1/8 > of that (and possibly lower values as well). > Sample error log entries: > http://pastebin.com/fSrdd5W1 > http://pastebin.com/Lmi0re7Z -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org