So? I mean, so what if a Query object cannot be cast to some other random
object type. The whole point is that a class extending "Query" can be used
where any "Query" object can be used.
You need to add the code to your Query-derived class to create it using an
existing query object and pass along all the required methods via
delegation.
-- Jack Krupansky
-----Original Message-----
From: denl0
Sent: Monday, January 21, 2013 11:48 AM
To: solr-user@lucene.apache.org
Subject: Re: How to combine Qparsers in a plugin?
Aw Extending doesn't seem to work.
I tried this:
public abstract class QObject extends org.apache.lucene.search.Query{
@Override
public boolean equals(Object o) {
return false;
}
}
But I get an error:
TermsIncludingScoreQuery cannot be cast to
lucenejar.TestParserPlugin$QObjectjava.lang.ClassCastException
The Query class doesn't have an interface.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-combine-Qparsers-in-a-plugin-tp4035011p4035131.html
Sent from the Solr - User mailing list archive at Nabble.com.