You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2026/10/05 12:49:40 UTC

(lucene) branch branch_10x updated: Fix outdated SegmentInfos#readCommit javadocs (#16766)

This is an automated email from the ASF dual-hosted git repository.

javanna pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_10x by this push:
     new 34de9afc272 Fix outdated SegmentInfos#readCommit javadocs (#16766)
34de9afc272 is described below

commit 34de9afc27229b0bbe4026e874001ac6ff541839
Author: Luca Cavanna <ja...@apache.org>
AuthorDate: Mon Oct 5 14:23:29 2026 +0200

    Fix outdated SegmentInfos#readCommit javadocs (#16766)
    
    readCommit needs updating after #14607
---
 lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java b/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
index 27bd1473cf3..b1f968bac76 100644
--- a/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
+++ b/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
@@ -296,8 +296,8 @@ public final class SegmentInfos implements Cloneable, Iterable<SegmentCommitInfo
   }
 
   /**
-   * Read a particular segmentFileName, as long as the commit's {@link
-   * SegmentInfos#getIndexCreatedVersionMajor()} is strictly greater than the provided minimum
+   * Read a particular segmentFileName, as long as each segment's {@link
+   * SegmentInfo#getMinVersion()} within the commit is strictly greater than the provided minimum
    * supported major version. If the commit's version is older, an {@link
    * IndexFormatTooOldException} will be thrown. Note that this may throw an IOException if a commit
    * is in process.