The two jar files are all you should need, and the configuration is correct. However I noticed that you are on Solr 1.3. I haven't tested the Lucid KStemmer on a non-Lucid-certified distribution of 1.3. I have tested it on recent versions of 1.4 and it works fine (just tested with the most recent nightly build).
So there are two options, but I don't know if either will work for you: 1. Move up to Solr 1.4, copy over the jars and configure. 2. Get the free Lucid certified distribution of 1.3 which already has the Lucid KStemmer (and other fixes which are an improvement over the standard 1.3). -Jay http://www.lucidimagination.com On Mon, Sep 14, 2009 at 6:09 PM, darniz <rnizamud...@edmunds.com> wrote: > > i was able to declare a field type when the i use the lucid distribution of > solr > <fieldtype name="lucidkstemmer" class="solr.TextField"> > <analyzer> > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > <filter > class="com.lucidimagination.solrworks.analysis.LucidKStemFilterFactory" > protected="protwords.txt" /> > </analyzer> > </fieldtype> > > But if i copy the two jars and put it in lib directory of apache solr > distribution it still gives me the following error. > > SEVERE: java.lang.NoClassDefFoundError: > org/apache/solr/util/plugin/ResourceLoaderAware > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at > > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375) > at > > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:247) > at > > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:257) > at > > org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:278) > 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.schema.IndexSchema.readAnalyzer(IndexSchema.java:781) > at > org.apache.solr.schema.IndexSchema.access$100(IndexSchema.java:56) > at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:413) > at org.apache.solr.schema.IndexSchema$1.create(IndexSchema.java:431) > at > > org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140) > at > org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:440) > at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:92) > at org.apache.solr.core.SolrCore.<init>(SolrCore.java:412) > at > > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:119) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) > at > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) > at > > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) > at > > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) > at org.mortbay.jetty.Server.doStart(Server.java:210) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929) > 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:597) > at org.mortbay.start.Main.invokeMain(Main.java:183) > at org.mortbay.start.Main.start(Main.java:497) > at org.mortbay.start.Main.main(Main.java:115) > Caused by: java.lang.ClassNotFoundException: > org.apache.solr.util.plugin.ResourceLoaderAware > 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:307) > at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > ... 53 more > Even though i checked jar and the presence of ResourceLoaderAware > interface > is there. > > Looks like its a versioning issue. > > > > darniz wrote: > > > > Ok i downlaod the lucid imaginationversion of Solr. > > > > From the lib directory i copied the two jars > > lucid-kstem.jar and lucid-solr-kstem.jar > > > > and put in my local solr instance > > at > > C:\solr\apache-solr-1.3.0\lib > > > > When i declare a field type like this > > <fieldtype name="lucidkstemmer" class="solr.TextField"> > > <analyzer> > > <tokenizer class="solr.WhitespaceTokenizerFactory"/> > > <filter class="solr.LucidKStemFilterFactory" > > protected="protwords.txt" /> > > </analyzer> > > </fieldtype> > > > > its throwing class not found exception. > > > > Is there some other files which i am missing. > > > > Please let me know thanks > > > > darniz > > > > Yonik Seeley-2 wrote: > >> > >> On Mon, Sep 14, 2009 at 1:56 PM, darniz <rnizamud...@edmunds.com> > wrote: > >>> Pascal Dimassimo wrote: > >>>> > >>>> Hi, > >>>> > >>>> I want to try KStem. I'm following the instructions on this page: > >>>> http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters/Kstem > >>>> > >>>> ... but the download link doesn't work. > >>>> > >>>> Is anyone know the new location to download KStem? > >>>> > >>> I am stuck with the same issue > >>> its link is not working for a long time > >>> > >>> > >>> is there any alternate link > >>> Please let us know > >> > >> *shrug* - looks like they changed their download structure (or just > >> took it down). I searched around their site a bit but couldn't find > >> another one (and google wasn't able to find it either). > >> > >> The one from Lucid is functionally identical, free, and much, much > >> faster though - I'd just use that. > >> > >> -Yonik > >> http://www.lucidimagination.com > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/KStem-download-tp24375856p25446263.html > Sent from the Solr - User mailing list archive at Nabble.com. > >