[ https://issues.apache.org/jira/browse/LUCENE-10085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17516122#comment-17516122 ]
Julie Tibshirani commented on LUCENE-10085: ------------------------------------------- I noticed a (possibly rare) failure. I didn't have the chance to look into it, but it seems like just a test bug. Reproduce line: {code:java} ./gradlew test --tests TestDocValuesFieldExistsQuery.testQueryMatchesCount -Dtests.seed=2AE288D9EAFE5D6C {code} Failure excerpt: {code:java} org.apache.lucene.search.TestDocValuesFieldExistsQuery > testQueryMatchesCount FAILED java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at __randomizedtesting.SeedInfo.seed([2AE288D9EAFE5D6C:DE155D6B02C5FE76]:0) at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) at java.base/java.util.Objects.checkIndex(Objects.java:359) at java.base/java.util.ArrayList.get(ArrayList.java:427) at java.base/java.util.Collections$UnmodifiableList.get(Collections.java:1347) at org.apache.lucene.search.TestDocValuesFieldExistsQuery.testQueryMatchesCount(TestDocValuesFieldExistsQuery.java:338) {code} > Implement Weight#count on DocValuesFieldExistsQuery > --------------------------------------------------- > > Key: LUCENE-10085 > URL: https://issues.apache.org/jira/browse/LUCENE-10085 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Minor > Fix For: 9.1 > > Time Spent: 4h 20m > Remaining Estimate: 0h > > Now that we require all documents to use the same features (LUCENE-9334) we > could implement {{Weight#count}} to return docCount if either terms or points > are indexed. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org