lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "patrick o'leary" <pj...@pjaol.com>
Subject ValueSourceParser problem
Date Wed, 16 Dec 2009 05:31:11 GMT
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(NamedList args) method
because SolrCore:~439 createInitInstance, cast's the plugin class as a
NamedListInitializedPlugin, and call's
((NamedListInitializedPlugin) o).init(info.initArgs);

If your extended ValueSourceParser class doesn't provide an override, then
there's nothing that implements the base interface from
NamedListInitializedPlugin.

Providing a head scratching conundrum that should be avoided.

Seems more than a documentation fix

Patrick

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message