vigyasharma commented on issue #12097:
URL: https://github.com/apache/lucene/issues/12097#issuecomment-1397542712

   Wait.. I think the assert should simply be on total no. of documents, not 
documents per leaf. Something like:
   ```java
       int count = 0;
       for (LeafReaderContext context : searcher.getLeafContexts()) {
         count += weight.count(context);
       }
       assertEquals(2, count);
   ```
   This passes on my workspace. I'll raise a PR.


-- 
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...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to