Am 26.08.2010 um 21:07 schrieb Ingo Renner: For those interested and for "the" Google, I found a working solution myself. The QParser is now down to this:
public AccessFilterQParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req) { super(qstr, localParams, params, req); this.accessFilter = new AccessFilter( localParams.get(AccessParams.ACCESS_FIELD, "access"), qstr ); } @Override public Query parse() throws ParseException { return new ConstantScoreQuery(accessFilter); } Of course the MatchAllDocsQuery was a bad idea and the FilteredQuery added an unwanted side effect to the query: well ... it filtered the search results in addition to any other queries - who would have guessed ;) All the best, hope it's helpful to someone Ingo -- Ingo Renner TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of Code TYPO3 Enterprise Content Management System http://typo3.org Apache Solr for TYPO3 - Enterprise Search meets Enterprise Content Management http://www.typo3-solr.com