Re: Using custom Similarity class

2008-07-17 Thread Chris Hostetter
: Thanks for the tip but I solved it but using the old way of loading custom : libs into solr: unpack the war file, add the custom library to WEB-INF/lib : and repack it. It definetly is a class loader problem, as the wiki specifies : that the new way of loading custom jars is using a custom class

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
Thanks for the tip but I solved it but using the old way of loading custom libs into solr: unpack the war file, add the custom library to WEB-INF/lib and repack it. It definetly is a class loader problem, as the wiki specifies that the new way of loading custom jars is using a custom class loader t

Re: Using custom Similarity class

2008-07-17 Thread Koji Sekiguchi
> com.example.CustomSimilarity cannot be cast to > org.apache.lucene.search.Similarity > at org.apache.solr.schema.IndexSchema.readConfig(IndexSchema.java:449) > ... 28 more I think you've got a class loader problem. If you have solr-1.2.0 source code, see the line 499 of IndexSchema.java:

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
I'm using solr-1.2.0. I didn't have a no-arg constructor. I just tried with one and it doesn't fix it. My servlet container is Jetty. Sebastien On Wed, Jul 16, 2008 at 10:22 PM, Erik Hatcher <[EMAIL PROTECTED]> wrote: > What version of Solr are you using? Seems to be not quite trunk at least

Re: Using custom Similarity class

2008-07-16 Thread Erik Hatcher
What version of Solr are you using? Seems to be not quite trunk at least, as IndexSchema.java:449 isn't the the similarity stuff currently). Does your CustomSimilarity have a no-arg constructor? Erik On Jul 16, 2008, at 9:19 PM, Sébastien Rainville wrote: Hi, I'm trying to ma