Hi all,

I'm interested in exploring the use of TermsComponent, but I don't want to
upgrade Solr to 1.4 until it's been officially released. I've tried
extracting the component and building it as an external lib but I'm having
problems getting it working.

I've copied TermsComponent and TermsParams from trunk into my own package
and Eclipse isn't reporting any build errors

The libs I'm using are:

apache-solr-common-1.3.0.jar
apache-solr-core-1.3.0.jar
lucene-core-2.4-dev.jar


I'm building the jar by exporting it from Eclipse.

But when I try and use it, solr gives an error at startup when it tries to
access the plugin.

Relevant solr conf;

<searchComponent name="termsComponent" class="my.package.TermsComponent" />


The error is:

SEVERE: java.lang.ClassCastException:
com.titanpublishing.solr.TermsComponent cannot be cast to
org.apache.solr.util.plugin.NamedListInitializedPlugin


Any help would be much appreciated.

Regards,
Andrew Ingram

Reply via email to