Caa52 commented on a change in pull request #658: URL: https://github.com/apache/solr/pull/658#discussion_r810415836
########## File path: solr/core/src/test/org/apache/solr/search/TestFilteredDocIdSet.java ########## @@ -133,24 +133,8 @@ public void testNullDocIdSet() throws Exception { // Now search w/ a Query which returns a null Scorer DocSetQuery f = new DocSetQuery(null) { @Override - public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) { - return new Weight(this) { - - @Override - public Explanation explain(LeafReaderContext context, int doc) { - return Explanation.match(0f, "No match on id " + doc); - } - - @Override - public Scorer scorer(LeafReaderContext leafReaderContext) { - return null; - } - - @Override - public boolean isCacheable(LeafReaderContext ctx) { - return false; - } - }; Review comment: We no longer need weight's abstract methods here since` scorer` now handles null in `DocSetQuery` -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org