Caa52 commented on a change in pull request #529:
URL: https://github.com/apache/solr/pull/529#discussion_r798926400
##########
File path: solr/core/src/java/org/apache/solr/query/FilterQuery.java
##########
@@ -89,8 +90,10 @@ public Weight createWeight(IndexSearcher searcher, ScoreMode
scoreMode, float bo
return new ConstantScoreQuery(q).createWeight(searcher, scoreMode, 1f);
}
+ SolrIndexSearcher solrSearcher = (SolrIndexSearcher)searcher;
+ DocSet docs = solrSearcher.getDocSet(q);
// reqInfo.addCloseHook(docs); // needed for off-heap refcounting
- return new ConstantScoreQuery(q).createWeight(searcher, scoreMode, 1f);
+ return new ConstantScoreQuery(docs.makeQuery()).createWeight(searcher,
scoreMode, 1f);
Review comment:
I will fix that. Got wrapped up in the failing test and forgot to take
that out, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]