ValueSourceParser problem

2009-12-15 Thread patrick o'leary
Howdy Couple of things about the ValueSourceParser #1 Change documentation of http://wiki.apache.org/solr/SolrPlugins#ValueSourceParser to say extends ValueSourceParser rather than implements. #2 There's an AbstractMethodError when you extend ValueSourceParser and don't override the

Re: ValueSourceParser problem

2009-12-15 Thread Mattmann, Chris A (388J)
Hey Patrick, On 12/15/09 9:31 PM, patrick o'leary pj...@pjaol.com wrote: #1 Change documentation of http://wiki.apache.org/solr/SolrPlugins#ValueSourceParser to say extends ValueSourceParser rather than implements. I updated the Wiki based on your comment. Cheers, Chris

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 11:01 AM, patrick o'leary pj...@pjaol.com wrote: #2 There's an AbstractMethodError when you extend ValueSourceParser and don't override the init(NamedList args) method because SolrCore:~439 createInitInstance, cast's the plugin class as a NamedListInitializedPlugin,

Re: ValueSourceParser problem

2009-12-15 Thread patrick o'leary
Check SolrCore.createInitInstance It cast's your CustomValueSourceParser as a NamedListInitializedPlugin which is an interface, thus the AbstractMethodError, as there isn't a concrete implementation of init. If it cast it as a ValueSourceParser in SolrCore then it would be fine. On Tue, Dec 15,

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 11:32 AM, patrick o'leary pj...@pjaol.com wrote: Check SolrCore.createInitInstance It cast's your CustomValueSourceParser as a NamedListInitializedPlugin which is an interface, thus the AbstractMethodError, as there isn't a concrete implementation of init. If it

Re: ValueSourceParser problem

2009-12-15 Thread patrick o'leary
SEVERE: java.lang.AbstractMethodError at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:439) at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1498) at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1492) at

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 11:58 AM, patrick o'leary pj...@pjaol.com wrote: SEVERE: java.lang.AbstractMethodError at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:439) at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1498) at

Re: ValueSourceParser problem

2009-12-15 Thread patrick o'leary
Rather than subject the list to code, it's pasted here http://www.pasteyourcode.com/13969 On Tue, Dec 15, 2009 at 10:42 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: On Wed, Dec 16, 2009 at 11:58 AM, patrick o'leary pj...@pjaol.com wrote: SEVERE: java.lang.AbstractMethodError

Re: ValueSourceParser problem

2009-12-15 Thread Noble Paul നോബിള്‍ नोब्ळ्
it does not have the code for SocialValueSource.. On Wed, Dec 16, 2009 at 12:18 PM, patrick o'leary pj...@pjaol.com wrote: Rather than subject the list to code, it's pasted here http://www.pasteyourcode.com/13969 On Tue, Dec 15, 2009 at 10:42 PM, Shalin Shekhar Mangar

Re: ValueSourceParser problem

2009-12-15 Thread patrick o'leary
Yeah.. can't release that part mate, all you need is package com.pjaol; import org.apache.lucene.queryParser.ParseException; import org.apache.solr.search.FunctionQParser; import org.apache.solr.search.ValueSourceParser; import org.apache.solr.search.function.ValueSource; public class

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 12:39 PM, patrick o'leary pj...@pjaol.com wrote: Yeah.. can't release that part mate, all you need is package com.pjaol; import org.apache.lucene.queryParser.ParseException; import org.apache.solr.search.FunctionQParser; import