jpountz commented on code in PR #13359: URL: https://github.com/apache/lucene/pull/13359#discussion_r1609821173
########## lucene/core/src/java/org/apache/lucene/index/CheckIndex.java: ########## @@ -3754,13 +3754,17 @@ public static Status.TermVectorStatus testTermVectors( TermsEnum postingsTermsEnum = postingsTerms.iterator(); final boolean hasProx = terms.hasOffsets() || terms.hasPositions(); + int seekExactCounter = 0; BytesRef term; while ((term = termsEnum.next()) != null) { // This is the term vectors: postings = termsEnum.postings(postings, PostingsEnum.ALL); assert postings != null; + if ((seekExactCounter++ & 0xFF) == 0) { + postingsTermsEnum.prepareSeekExact(term); Review Comment: Correct. -- 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