Well I will include the stack trace for the aforementioned error: Jul 28, 2008 12:20:17 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.handler.component.SpellCheckComponent' at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:227) at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:232) at org.apache.solr.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:83) at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140) at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:565) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:371) at org.solrmarc.marc.MarcImporter.<init>(MarcImporter.java:95) at org.solrmarc.marc.MarcImporter.main(MarcImporter.java:559) Caused by: java.lang.ClassNotFoundException: org.apache.solr.handler.component.SpellCheckComponent at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:580) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:211) ... 7 more
The line 95 of MarcImporter.java (the solr import program I am using) is the instantiation of SolrCore. So maybe somehow the spellCheckComponent is not getting loaded? This is the error output I get thrown by instantiating SolrCore: org.apache.solr.common.SolrException: Unknown Search Component: spellcheck at org.apache.solr.core.SolrCore.getSearchComponent(SolrCore.java:597) at org.apache.solr.handler.component.SearchHandler.inform(SearchHandler.java:107) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:264) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:398) at org.solrmarc.marc.MarcImporter.<init>(MarcImporter.java:95) at org.solrmarc.marc.MarcImporter.main(MarcImporter.java:559) Andrew > -----Original Message----- > From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2008 12:07 PM > To: solr-user@lucene.apache.org > Subject: Re: SpellCheckComponent problems (was: Multiple search > components in one handler - ie spellchecker) > > No, SpellCheckComponent was in the nightly long before July 25. There > must > be a stack trace after that error message. Can you post that? > > On Mon, Jul 28, 2008 at 9:26 PM, Andrew Nagy > <[EMAIL PROTECTED]>wrote: > > > I was just reviewing the solr logs and I noticed the following: > > > > Jul 28, 2008 11:52:01 AM org.apache.solr.common.SolrException log > > SEVERE: org.apache.solr.common.SolrException: Error loading class > > 'org.apache.solr.handler.component.SpellCheckComponent' > > > > It looks like the SpellCheckComponent is not getting loaded. What > could > > cause this? Im running the july25 nightly build. > > > > Here is a list of the libs from my /tmp/jetty/webapp/WEB-INF/lib dir: > > -rw-r--r-- 1 root root 84199 Jul 25 08:14 apache-solr-common- > nightly.jar > > -rw-r--r-- 1 root root 889903 Jul 25 08:14 apache-solr-nightly.jar > > -rw-r--r-- 1 root root 46725 May 10 2007 commons-codec-1.3.jar > > -rw-r--r-- 1 root root 22017 Jan 6 2008 > > commons-csv-1.0-SNAPSHOT-r609327.jar > > -rw-r--r-- 1 root root 53082 Mar 1 2007 commons-fileupload- > 1.2.jar > > -rw-r--r-- 1 root root 305001 Sep 11 2007 commons-httpclient- > 3.1.jar > > -rw-r--r-- 1 root root 83613 Jun 15 2007 commons-io-1.3.1.jar > > -rw-r--r-- 1 root root 38015 Jun 14 2007 commons-logging-1.0.4.jar > > -rw-r--r-- 1 root root 249154 Sep 21 2007 junit-4.3.jar > > -rw-r--r-- 1 root root 115101 Jun 19 13:46 lucene-analyzers-2.4- > dev.jar > > -rw-r--r-- 1 root root 730352 Jun 19 13:46 lucene-core-2.4-dev.jar > > -rw-r--r-- 1 root root 87390 Jun 19 13:46 lucene-highlighter-2.4- > dev.jar > > -rw-r--r-- 1 root root 32693 Jun 19 13:46 lucene-queries-2.4- > dev.jar > > -rw-r--r-- 1 root root 91029 Jun 19 13:46 lucene-snowball-2.4- > dev.jar > > -rw-r--r-- 1 root root 18422 Jun 19 13:46 lucene-spellchecker-2.4- > dev.jar > > -rw-r--r-- 1 root root 179348 Jun 14 2007 stax-1.2.0-dev.jar > > -rw-r--r-- 1 root root 25863 Jun 14 2007 stax-api-1.0.jar > > -rw-r--r-- 1 root root 128475 Jun 14 2007 stax-utils.jar > > > > could I be missing a jar? > > > > Thanks > > Andrew > > > > > -----Original Message----- > > > From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] > > > Sent: Monday, July 28, 2008 11:24 AM > > > To: solr-user@lucene.apache.org > > > Subject: Re: SpellCheckComponent problems (was: Multiple search > > > components in one handler - ie spellchecker) > > > > > > Hi Andrew, > > > > > > Your configuration which you specified in the earlier thread looks > > > fine. > > > Your query is also ok. The complete lack of spell check results in > the > > > response you pasted suggests that the SpellCheckComponent is not > added > > > to > > > the SearchHandler's list of components. > > > > > > Can you check your solrconfig.xml again? I'm sorry but it doesn't > seem > > > like > > > a problem with the spell checker itself. Also check if there are > any > > > exceptions in the Solr log/console. > > > > > > On Mon, Jul 28, 2008 at 8:32 PM, Andrew Nagy > > > <[EMAIL PROTECTED]>wrote: > > > > > > > > -----Original Message----- > > > > > From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] > > > > > Sent: Monday, July 28, 2008 10:09 AM > > > > > To: solr-user@lucene.apache.org > > > > > Subject: Re: SpellCheckComponent problems (was: Multiple search > > > > > components in one handler - ie spellchecker) > > > > > > > > > > Can you show us the query you are issuing? Make sure you add > > > > > spellcheck=true > > > > > to the query as a parameter to turn on spell checking. > > > > > > > > > > > > > > > > http://localhost:8080/solr/select?q=*:*&spellcheck=true&spellcheck.q=sc > > > andanava&spellcheck.build=true > > > > > > > > Shows this: > > > > <response> > > > > <lst name="responseHeader"> > > > > <int name="status">0</int> > > > > <int name="QTime">73</int> > > > > </lst> > > > > <result name="response" numFound="7650" start="0"> > > > > ... > > > > </result> > > > > </response> > > > > > > > > Andrew > > > > > > > > > > > > > > > > -- > > > Regards, > > > Shalin Shekhar Mangar. > > > > > > -- > Regards, > Shalin Shekhar Mangar.