Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 12:39 PM, patrick o'leary 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 org.apache.solr.search.ValueSourceParser; > imp

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 CustomValu

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 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 < > shalinman...@gmail.com> wrote:

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 wrote: > > > SEVERE: java.lang.AbstractMethodError > >at org

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 11:58 AM, patrick o'leary 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 org.apache.solr.core.SolrCore.initPlugins(Solr

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 org.apache.solr.core.SolrCore.initPlugins

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 11:32 AM, patrick o'leary 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 cast it as

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, 2

Re: ValueSourceParser problem

2009-12-15 Thread Shalin Shekhar Mangar
On Wed, Dec 16, 2009 at 11:01 AM, patrick o'leary 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, and call's >

Re: ValueSourceParser problem

2009-12-15 Thread Mattmann, Chris A (388J)
Hey Patrick, On 12/15/09 9:31 PM, "patrick o'leary" 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 ++

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 init(NamedLi