Skip to content

Apache Lucene open-source search software

Fix outdated SegmentInfos#readCommit javadocs (#16766)

Luca Cavannaed2d3ee8d495
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 fc4d809c73f..cfee94fc45d 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.