Re: Overriding DefaultSimilarity Cast Exception 4.5.1

2014-01-27 Thread Summer Shire
Hi Shawn and Chris, your inputs Helped I figured it out from all these links and also what Chris mentioned. Thanks, Summer On Jan 27, 2014, at 5:54 PM, Shawn Heisey wrote: > On 1/27/2014 5:41 PM, Summer Shire wrote: >> Caused by: java.lang.ClassCastException: .PayloadSimilarity >> cannot be c

Re: Overriding DefaultSimilarity Cast Exception 4.5.1

2014-01-27 Thread Shawn Heisey
On 1/27/2014 5:41 PM, Summer Shire wrote: Caused by: java.lang.ClassCastException: .PayloadSimilarity cannot be cast to org.apache.lucene.search.similarities.Similarity at org.apache.solr.schema.IndexSchema$1.getSimilarity(IndexSchema.java:929) at org.apache.solr.schema.IndexSc

Re: Overriding DefaultSimilarity Cast Exception 4.5.1

2014-01-27 Thread Summer Shire
Thanks Chris for a quick response. But I verified that I only have the following jars lucene-analyzers-common-4.5.1 lucene-core-4.5.1 lucene-queries-4.5.1 lucene-spatial-4.5.1 solr-solrj-4.5.1 they are all the same version. Also how can I verify the classpath ? Since I do not have other lucen

Re: Overriding DefaultSimilarity Cast Exception 4.5.1

2014-01-27 Thread Chris Hostetter
: Caused by: java.lang.ClassCastException: .PayloadSimilarity : cannot be cast to org.apache.lucene.search.similarities.Similarity If you are getting this error even though you subclass DefaultSimilarity, i suspect that one or both of the following has happened: 1) you've compiled your Payload