Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BB8576EB for ; Thu, 1 Dec 2011 13:01:05 +0000 (UTC) Received: (qmail 76313 invoked by uid 500); 1 Dec 2011 13:01:02 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 76222 invoked by uid 500); 1 Dec 2011 13:01:02 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 75823 invoked by uid 99); 1 Dec 2011 13:01:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 13:01:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 13:01:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 97129AE0B6 for ; Thu, 1 Dec 2011 13:00:40 +0000 (UTC) Date: Thu, 1 Dec 2011 13:00:40 +0000 (UTC) From: "Erick Erickson (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1796772256.30825.1322744440620.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <600554674.30456.1322737421712.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2934) Problem with Solr Hunspell with French Dictionary MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org