[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13924932#comment-13924932 ] Robert Muir commented on SOLR-2934: --- {quote} Stephan Meisinger added a comment - 16/Jul/12 05:05 Please consider look at this again: I can reproduce the original StringOutOfBoundException in DoubleASCIIFlagParsingStrategy {quote} Just a followup about that issue with long flags, I found this in a thunderbird dictionary. The bug is not the flag parsing (again it should always be an even number of characters, i added an explicit check for that too!). Instead the bug was that escaping wasnt handled properly. So if the word itself contains a slash, some parts of the word would be bogusly parsed as flags. The escaping was fixed in LUCENE-5497. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.8, 5.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:12
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919696#comment-13919696 ] ASF subversion and git services commented on SOLR-2934: --- Commit 1574159 from [~rcmuir] in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1574159 ] SOLR-2934: increase buffer size for recent dictionaries with large amounts of AF/AM lines before charset > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.7 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13919695#comment-13919695 ] ASF subversion and git services commented on SOLR-2934: --- Commit 1574158 from [~rcmuir] in branch 'dev/trunk' [ https://svn.apache.org/r1574158 ] SOLR-2934: increase buffer size for recent dictionaries with large amounts of AF/AM lines before charset > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.7 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414943#comment-13414943 ] Chris Male commented on SOLR-2934: -- I will take a look Stephan. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don't know > why ... > Can you help me ? -- This message is autom
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414942#comment-13414942 ] Stephan Meisinger commented on SOLR-2934: - Please consider look at this again: I can reproduce the original StringOutOfBoundException in DoubleASCIIFlagParsingStrategy I think this is caused by for (int i = 0; i < rawFlags.length(); i+=2) { char cookedFlag = (char) ((int) rawFlags.charAt(i) + (int) rawFlags.charAt(i + 1)); // <<< i +1 here!!! we have used the dictonary with solr 3.3 (+patched with files from LUCENE-3414/SOLR-2769) changed this given line to for (int i = 0; i < rawFlags.length()-1; i+=2) { // <<< reduce size by 1 because of .charAt(i+1) char cookedFlag = (char) ((int) rawFlags.charAt(i) + (int) rawFlags.charAt(i + 1)); this worked flawless for us. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDic
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284361#comment-13284361 ] ludovic Boutros commented on SOLR-2934: --- I've attached a little patch in the other issue which allows me to load latest French dictionaries of OpenOffice. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284337#comment-13284337 ] ludovic Boutros commented on SOLR-2934: --- done : SOLR-3494. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don't know > why ... > Can you help me ? -- This message is autom
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284334#comment-13284334 ] ludovic Boutros commented on SOLR-2934: --- And just for information, the ubuntu french hunspell dictionary is not compressed and works perfectly. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong f
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284329#comment-13284329 ] Chris Male commented on SOLR-2934: -- bq. Correct me if I'm wrong but it seems not possible to load compressed affix dictionaries currently. That is correct. Our Java code isn't a direct port from the C++ code, rather it's an implementation designed to suit our needs. It could definitely do with some love in regards to compressed dictionaries. Would you like to open an issue and through together a patch? > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13284322#comment-13284322 ] ludovic Boutros commented on SOLR-2934: --- For the french dictionary for instance, if I understand the mechanism well, it seems that there are some aliases, i.e. "AF ...", "AM ...". These dictionaries are somehow compressed. And in the C++ code there is this part of code : {code} dash = strchr(piece, '/'); if (dash) { ... if (pHMgr->is_aliasf()) { int index = atoi(dash + 1); nptr->contclasslen = pHMgr->get_aliasf(index, &(nptr->contclass)); } else { nptr->contclasslen = pHMgr->decode_flags(&(nptr->contclass), dash + 1); flag_qsort(nptr->contclass, 0, nptr->contclasslen); } {code} But I did not find anything similar in the Java Class, the aliases are not loaded I think. Correct me if I'm wrong but it seems not possible to load compressed affix dictionaries currently. Hope this can help. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Fix For: 4.0 > > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207685#comment-13207685 ] Bráulio Bhavamitra commented on SOLR-2934: -- the same is happening with pt_BR dict http://artfiles.org/openoffice.org/contrib/dictionaries/pt_BR.zip > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192246#comment-13192246 ] Robert Muir commented on SOLR-2934: --- I see, indeed this has no CHARSET line. I think the only solution is to allow the user to manually provide this as a parameter in such cases. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > Attachments: en_GB.aff, en_GB.dic > > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wron
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192231#comment-13192231 ] Robert Muir commented on SOLR-2934: --- When I click that page it just links to http://extensions.services.openoffice.org/en/project/dict-en-fixed and gives the same error. Can you upload your copy? > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don't
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192221#comment-13192221 ] Markus Jelsma commented on SOLR-2934: - Indeed! Strange. If you go there via: http://extensions.services.openoffice.org/en/dictionaries and this anchor: English dictionaries with fixed dash handling and new ligature and phonetic suggestion support you'll end up on the same page without error. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictio
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192216#comment-13192216 ] Robert Muir commented on SOLR-2934: --- That page doesnt work for me. {quote} So if you want bugs fixed with dictionaries, which anyone can make and can be buggy, you must upload them to this issue (don't check the box), because otherwise we have nothing to work with. {quote} > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it wor
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192214#comment-13192214 ] Markus Jelsma commented on SOLR-2934: - {code} Caused by: java.text.ParseException: The first non-comment line in the affix file must be a 'SET charset', was: 'FLAG num' at org.apache.lucene.analysis.hunspell.HunspellDictionary.getDictionaryEncoding(HunspellDictionary.java:262) at org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:101) at org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:80) ... 31 more {code} This is thrown by the en_GB available at OpenOffice. http://extensions.services.openoffice.org/en/project/dict-en-fixed > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(Hunspe
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192211#comment-13192211 ] Markus Jelsma commented on SOLR-2934: - I'm sorry, it means the packages available at OpenOffice. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don't know > why ... > Can you help me ? -- This message is automatically generated by JIRA. If you thin
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192210#comment-13192210 ] Robert Muir commented on SOLR-2934: --- Where did you get your en_GB dictionary? The one from openoffice has as first line 'SET ISO8859-1'. So if you want bugs fixed with dictionaries, which *anyone* can make and can be buggy, you must upload them to this issue (don't check the box), because otherwise we have nothing to work with. There is no point in worrying about adding aliases/matching up charset naming for Thai. The thai spell dictionary is just a list of words (nothing in the .aff except 4 replacement rules for spellchecking), so this whole filter will be a no-op with that dictionary. {noformat} SET TIS620-2533 REP 4 REP ทร ซ REP ซ ทร REP ส ซ REP ซ ส {noformat} > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.an
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192194#comment-13192194 ] Robert Muir commented on SOLR-2934: --- {quote} It seems there are many different issues with the provided dic and aff files and some seem to work and some don't seem to work at all. {quote} What does this mean? We don't provide any dic and aff files! > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my f
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192162#comment-13192162 ] Markus Jelsma commented on SOLR-2934: - We've seen issues with quite a few dic files as well but the stacktrace makes it difficult to find the error. NumberFormatExceptions (da_DK) are easy as they print the bad number but ArrayOutOfBoundExceptions (nl_NL) are almost impossible to debug. We also see ParseExceptions such as (en_GB): Caused by: java.text.ParseException: The first non-comment line in the affix file must be a 'SET charset', was: 'FLAG num' at org.apache.lucene.analysis.hunspell.HunspellDictionary.getDictionaryEncoding(HunspellDictionary.java:262) at org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:101) at org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:80) ... 31 more and UnsupportedCharsetException (th_TH): Caused by: java.nio.charset.UnsupportedCharsetException: TIS620-2533 at java.nio.charset.Charset.forName(Charset.java:505) at org.apache.lucene.analysis.hunspell.HunspellDictionary.getJavaEncoding(HunspellDictionary.java:275) at org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:102) at org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:80) ... 31 more It seems there are many different issues with the provided dic and aff files and some seem to work and some don't seem to work at all. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160902#comment-13160902 ] Chris Male commented on SOLR-2934: -- Great idea > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don't know > why ... > Can you help me ? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA a
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160900#comment-13160900 ] Robert Muir commented on SOLR-2934: --- Might also be a good idea to document somewhere that not all languages' encodings work correctly at the moment. Some of these are crazy-complicated (e.g. hungarian). > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160889#comment-13160889 ] Chris Male commented on SOLR-2934: -- No worries :) > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I don't know > why ... > Can you help me ? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIR
[jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary
[ https://issues.apache.org/jira/browse/SOLR-2934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160888#comment-13160888 ] Erick Erickson commented on SOLR-2934: -- Yep, I just saw that and tried to re-open the issue but you beat me to it! I should probably read the user's list before the dev list each morning! My mistake. > Problem with Solr Hunspell with French Dictionary > - > > Key: SOLR-2934 > URL: https://issues.apache.org/jira/browse/SOLR-2934 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis >Affects Versions: 3.5 > Environment: Windows 7 >Reporter: Nathan Castelein >Assignee: Chris Male > > I'm trying to add the HunspellStemFilterFactory to my Solr project. > I'm trying this on a fresh new download of Solr 3.5. > I downloaded french dictionary here (found it from here): > http://www.dicollecte.org/download/fr/hunspell-fr-moderne-v4.3.zip > But when I start Solr and go to the Solr Analysis, an error occurs in Solr. > Is there the trace : > java.lang.RuntimeException: Unable to load hunspell data! > [dictionary=en_GB.dic,affix=fr-moderne.aff] > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:82) > at > org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:546) > at org.apache.solr.schema.IndexSchema.(IndexSchema.java:126) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:461) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:194) > at org.mortbay.start.Main.start(Main.java:534) > at org.mortbay.start.Main.start(Main.java:441) > at org.mortbay.start.Main.main(Main.java:119) > Caused by: java.lang.StringIndexOutOfBoundsException: String index out of > range: 3 > at java.lang.String.charAt(Unknown Source) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary$DoubleASCIIFlagParsingStrategy.parseFlags(HunspellDictionary.java:382) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.parseAffix(HunspellDictionary.java:165) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.readAffixFile(HunspellDictionary.java:121) > at > org.apache.lucene.analysis.hunspell.HunspellDictionary.(HunspellDictionary.java:64) > at > org.apache.solr.analysis.HunspellStemFilterFactory.inform(HunspellStemFilterFactory.java:46) > I can't find where the problem is. It seems like my dictionary isn't well > written for hunspell, but I tried with two different dictionaries, and I had > the same problem. > I also tried with an english dictionary, and ... it works ! > So I think that my french dictionary is wrong for hunspell, but I