lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Can't use SnowballAnalyzer
Date Wed, 30 Aug 2006 10:09:46 GMT
I'd be surprised if the SnowballAnalyzer can work directly, as its  
constructor requires the language parameter.  I see SnowballAnalyzer  
mentioned in a comment in the example schema.xml, but there is no  
specification for language.   My guess is you'll need to construct  
your own Analyzer that uses the SnowballFilter with a hardcoded  
language name (or passed in as a parameter some other way).

	Erik


On Aug 30, 2006, at 4:37 AM, Diogo Matos wrote:

> Hi All,
>
> I'm trying to use the SnowballAnalyzer and for some strange reason  
> i cannot.
> I got the following error message in the logs file:
>
> org.apache.solr.core.SolrException: Error instantiating class class
> org.apache.lucene.analysis.snowball.SnowballAnalyzer
>    at org.apache.solr.core.Config.newInstance(Config.java:213)
>    at org.apache.solr.schema.IndexSchema.readAnalyzer 
> (IndexSchema.java:466)
>    at org.apache.solr.schema.IndexSchema.readConfig 
> (IndexSchema.java:294)
>    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:67)
>    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:189)
>    at org.apache.solr.core.SolrCore.getSolrCore(SolrCore.java:170)
>    at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:74)
>    at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>    at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1105)
>    at org.apache.catalina.core.StandardWrapper.load 
> (StandardWrapper.java
> :932)
>    at org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3917)
>    at org.apache.catalina.core.StandardContext.start 
> (StandardContext.java
> :4201)
>    at org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:759)
>    at org.apache.catalina.core.ContainerBase.addChild 
> (ContainerBase.java
> :739)
>    at org.apache.catalina.core.StandardHost.addChild 
> (StandardHost.java:524)
>    at org.apache.catalina.startup.HostConfig.deployDirectory(
> HostConfig.java:904)
>    at org.apache.catalina.startup.HostConfig.deployDirectories(
> HostConfig.java:867)
>    at org.apache.catalina.startup.HostConfig.deployApps 
> (HostConfig.java
> :474)
>    at org.apache.catalina.startup.HostConfig.start(HostConfig.java: 
> 1122)
>    at org.apache.catalina.startup.HostConfig.lifecycleEvent 
> (HostConfig.java
> :310)
>    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>    at org.apache.catalina.core.ContainerBase.start 
> (ContainerBase.java:1021)
>    at org.apache.catalina.core.StandardHost.start(StandardHost.java: 
> 718)
>    at org.apache.catalina.core.ContainerBase.start 
> (ContainerBase.java:1013)
>    at org.apache.catalina.core.StandardEngine.start 
> (StandardEngine.java
> :442)
>    at org.apache.catalina.core.StandardService.start 
> (StandardService.java
> :450)
>    at org.apache.catalina.core.StandardServer.start 
> (StandardServer.java
> :709)
>    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:585)
>    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Caused by: java.lang.InstantiationException:
> org.apache.lucene.analysis.snowball.SnowballAnalyzer
>    at java.lang.Class.newInstance0(Class.java:335)
>    at java.lang.Class.newInstance(Class.java:303)
>    at org.apache.solr.core.Config.newInstance(Config.java:211)
>    ... 33 more
>
>
> Does any one used it before?
> Thank you
> Diogo


Mime
View raw message