File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
lucene/core/src/java/org/apache/lucene/index Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -484,21 +484,23 @@ private static void parseSegmentInfos(
484484 input );
485485 }
486486
487- int segmentDerivedFromMajorVersion =
487+ int createdOrSegmentMinVersion =
488488 info .getMinVersion () == null
489489 ? infos .indexCreatedVersionMajor
490490 : info .getMinVersion ().major ;
491+
492+ // version >=7 are expected to record minVersion
491493 if (info .getMinVersion () == null || info .getMinVersion ().major < minSupportedMajorVersion ) {
492494 throw new IndexFormatTooOldException (
493495 input ,
494496 "Index has segments derived from Lucene version "
495- + segmentDerivedFromMajorVersion
497+ + createdOrSegmentMinVersion
496498 + ".x and is not supported by Lucene "
497499 + Version .LATEST
498500 + ". This Lucene version only supports indexes with major version "
499501 + minSupportedMajorVersion
500502 + " or later (found: "
501- + segmentDerivedFromMajorVersion
503+ + createdOrSegmentMinVersion
502504 + ", minimum supported: "
503505 + minSupportedMajorVersion
504506 + "). To resolve this issue re-index your data using Lucene "
You can’t perform that action at this time.
0 commit comments