zhaih opened a new pull request, #12051:
URL: https://github.com/apache/lucene/pull/12051

   ### Description
   
   An error discovered during a check for a commit.
   
   Error stack trace:
   ```
   org.apache.lucene.search.TestBooleanQuery > testQueryMatchesCount FAILED
       java.lang.AssertionError: expected:<5> but was:<-1>
           at 
__randomizedtesting.SeedInfo.seed([347B41327254C56F:C08C94809A6F6675]:0)
           at org.junit.Assert.fail(Assert.java:89)
           at org.junit.Assert.failNotEquals(Assert.java:835)
           at org.junit.Assert.assertEquals(Assert.java:647)
           at org.junit.Assert.assertEquals(Assert.java:633)
           at 
org.apache.lucene.search.TestBooleanQuery.testQueryMatchesCount(TestBooleanQuery.java:776)
   ```
   
   It turns out to be that after we have implemented some estimation method for 
BooleanQuery, this assertion is not always true anymore. Since the query is a 
pure disjunction query and when it contains `field:c`(The clause that retrieves 
all documents) the BooleanWeight will actually give a good answer.


-- 
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