You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jpountz (via GitHub)" <gi...@apache.org> on 2023/03/08 16:25:33 UTC

[GitHub] [lucene] jpountz commented on a diff in pull request #12194: [GITHUB-11915] [Discussion Only] Make Lucene smarter about long runs of matches via new API on DISI

jpountz commented on code in PR #12194:
URL: https://github.com/apache/lucene/pull/12194#discussion_r1129692954


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90DocValuesProducer.java:
##########
@@ -414,6 +416,13 @@ public int nextDoc() throws IOException {
       return advance(doc + 1);
     }
 
+    @Override
+    public int peekNextNonMatchingDocID() {
+      // TODO not exercised by wikimedium10m benchmark
+      // all docs contain values
+      return NO_MORE_DOCS;

Review Comment:
   It should return maxDoc rather than NO_MORE_DOCS.



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

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


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