Yes it worked like you explained. This is my new query class:
public class QObject extends org.apache.lucene.search.Query { Query q; public QObject(Query q) { this.q = q; } @Override public void extractTerms(Set<Term> terms) { q.extractTerms(terms); } @Override public Query rewrite(IndexReader reader) throws IOException { return q.rewrite(reader); } @Override public boolean equals(Object obj) { return q.equals(obj); } @Override public int hashCode() { return q.toString().hashCode(); } @Override public String toString(String string) { return q.toString(); } } -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-combine-Qparsers-in-a-plugin-tp4035011p4035279.html Sent from the Solr - User mailing list archive at Nabble.com.