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
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
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,
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,
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
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
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
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
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
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
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
11 matches
Mail list logo