expani commented on code in PR #14511:
URL: https://github.com/apache/lucene/pull/14511#discussion_r2059790054


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene103/Lucene103PostingsReader.java:
##########
@@ -66,13 +67,20 @@
 public final class Lucene103PostingsReader extends PostingsReaderBase {
 
   static final VectorizationProvider VECTORIZATION_PROVIDER = 
VectorizationProvider.getInstance();
+
   // Dummy impacts, composed of the maximum possible term frequency and the 
lowest possible
   // (unsigned) norm value. This is typically used on tail blocks, which don't 
actually record
-  // impacts as the storage overhead would not be worth any query evaluation 
speedup, since there's
+  // impacts as the storage overhead would not be worth any query evaluation 
speedup, since
+  // there's
   // less than 128 docs left to evaluate anyway.
   private static final List<Impact> DUMMY_IMPACTS =
       Collections.singletonList(new Impact(Integer.MAX_VALUE, 1L));
 
+  // We stopped storing a placeholder impact with freq=1 for fields with 
IndexOptions.DOCS after
+  // 9.12.0
+  private static final List<Impact> NON_COMPETITIVE_IMPACTS =
+      Collections.singletonList(new Impact(1, 1L));

Review Comment:
   Done



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