Hi,
ExtendedQueryBase extends the abstract Lucene query class, but you don’t implement any query-specific method. So Solr does not know which query you want to execute? The postfilter alone is no valid query. Also there may be some bugs in your code: - Where does indexSearcher come from? - The collect method uses the atomic docid to query the top-level indexsearcher. It should either use the atomicReaderContext and request the document from there or it should use docBase to transform the docid to be global But this code is not yet executed, I just wanted to mention this. Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen <http://www.thetaphi.de/> http://www.thetaphi.de eMail: u...@thetaphi.de From: Muhzin [mailto:rmuh...@gmail.com] Sent: Tuesday, October 15, 2013 4:11 PM To: dev@lucene.apache.org Subject: solr Post Filter Hi, I am developing a post filter implementation in solr 4.2.1 . the following is a gist to my implementation. https://gist.github.com/rmuhzin/6991544 I deployed my plugin in the library folder and updated the solrconfig.xml <queryParser name="lastLoginParser" class="com.m4marry.PostQParserPlugin" /> But when I apply the plugin using http:/localhost/solr/profiles/select?q={!lastLoginParser}*%3A*&wt=xml&indent=true I get the following error java.lang.UnsupportedOperationException: Query {!cache=false cost=100} does not implement createWeight at org.apache.lucene.search.Query.createWeight(Query.java:80) at Full stack trace at : https://gist.github.com/rmuhzin/6992029 Could someone please shed some light into it ?