Apache Lucene open-source search software
Lower min supported major version to 9 in main (#16741)
Luca Cavanna8476457b8752
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex a85c1f7b75c..30693cd3aad 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -7,6 +7,9 @@ http://s.apache.org/luceneversionsAPI Changes---------------------+* GITHUB#16741: Lower the minimum supported major version from 10 to 9. Indexes created with 9.x+ remain fully supported in Lucene 11, no reindexing required. (Luca Cavanna)+* GITHUB#16705: KnnVectorValues#prefetch(int ord, int count) replaces prefetch(int ord). It prefetchesa run of consecutive vectors with a single read and returns true if a prefetch was issued, likeIndexInput#prefetch. The int[] form now coalesces ordinals that are consecutive in the array overdiff --git a/lucene/MIGRATE.md b/lucene/MIGRATE.mdindex 34d74052557..31ab6476a4c 100644--- a/lucene/MIGRATE.md+++ b/lucene/MIGRATE.md@@ -133,29 +133,25 @@ It instead routes through `createOutput`, so filter directories that overridethat relied on the wrapped directory's optimized copy should override `copyFrom` anddelegate explicitly, as `HardlinkCopyDirectoryWrapper` does.-### Relaxed Index Upgrade Policy (GITHUB#13797)+### Relaxed Index Upgrade Policy (GITHUB#13797, GITHUB#16741)Starting with Lucene 11.0.0, the index upgrade policy has been relaxed to allow safe upgrades across multiple major version numbers without reindexing when no format breaks occur.#### Key Changes- `Version.MIN_SUPPORTED_MAJOR` is now manually maintained instead of auto-computed as `LATEST.major-1`-- Set to 10 for Lucene 11.0.0, allowing indexes created with Lucene 10.x to be opened directly+- Set to 9 for Lucene 11.0.0, so indexes created with Lucene 9.x remain fully supported (open and write)- Will only be bumped when actual incompatible format changes are introduced--#### Two-Tier Version Policy--1. **Index opening policy**: An index can be opened if its creation version >= `MIN_SUPPORTED_MAJOR`-2. **Codec reader policy**: Segments can only be read directly if written by current or previous major version number+- The distinction between write and read-only compatibility is removed: all the built-in codecs provide full support#### Upgrade Scenarios##### Scenario 1: No format breaks (wider upgrade span)-- Index created with Lucene 10.x can be opened directly in Lucene 11.x, 12.x, 13.x, 14.x (as long as MIN_SUPPORTED_MAJOR stays ≤ 10)+- Index created with Lucene 9.x can be opened directly in Lucene 10.x, 11.x, 12.x, 13.x, 14.x (as long as MIN_SUPPORTED_MAJOR stays ≤ 9)- Simply open the index with the new version; segments will be upgraded gradually through normal merging- Optional: Call `forceMerge()` or use `UpgradeIndexMergePolicy` to upgrade segment formats immediately-- **Important**: You still only get one upgrade per index lifetime. Once MIN_SUPPORTED_MAJOR is bumped above 10, the index becomes unopenable and must be reindexed.+- **Important**: You still only get one upgrade per index lifetime. Once MIN_SUPPORTED_MAJOR is bumped above 9, the index becomes unopenable and must be reindexed.##### Scenario 2: Format breaks occur@@ -165,16 +161,15 @@ Starting with Lucene 11.0.0, the index upgrade policy has been relaxed to allow##### Scenario 3: After using your upgrade-- Index created with Lucene 10.x, successfully opened with Lucene 14.x-- The index's creation version is still 10 (this never changes)-- When Lucene 15+ bumps MIN_SUPPORTED_MAJOR above 10, this index becomes unopenable+- Index created with Lucene 9.x, successfully opened with Lucene 14.x+- The index's creation version is still 9 (this never changes)+- When Lucene 15+ bumps MIN_SUPPORTED_MAJOR above 9, this index becomes unopenable- Must reindex to continue using newer Lucene versions#### Upgrade Example```java-// Opening a 10.x index in 11 still works (MIN_SUPPORTED_MAJOR is 10).-// Later majors may keep that minimum if no format break occurs.+// Opening an index created with Lucene 9.x or 10.x in Lucene 11.x+try (Directory dir = FSDirectory.open(indexPath)) {try (DirectoryReader reader = DirectoryReader.open(dir)) {// Index can be read normallydiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.javaindex 85c53af7183..9359663b49f 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/BackwardsCompatibilityTestBase.java@@ -29,7 +29,6 @@ import java.nio.file.Paths;import java.nio.file.StandardOpenOption;import java.text.ParseException;import java.util.ArrayList;-import java.util.Collections;import java.util.HashSet;import java.util.Iterator;import java.util.LinkedHashSet;@@ -62,7 +61,6 @@ import org.junit.Before;public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase {static final Set<String> OLD_VERSIONS;- protected static final Set<Version> BINARY_SUPPORTED_VERSIONS;private static final Version LATEST_PREVIOUS_MAJOR = getLatestPreviousMajorVersion();@@ -84,22 +82,14 @@ public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase {} catch (IOException exception) {throw new RuntimeException("failed to load resource", exception);}- Set<Version> binaryVersions = new HashSet<>();for (String version : OLD_VERSIONS) {try {Version v = Version.parse(version);- assertTrue("Unsupported binary version: " + v, v.major >= Version.MIN_SUPPORTED_MAJOR - 1);- binaryVersions.add(v);+ assertTrue("Unsupported version: " + v, v.major >= Version.MIN_SUPPORTED_MAJOR);} catch (ParseException ex) {throw new RuntimeException(ex);}}-- for (Version version : getAllCurrentReleasedVersions()) {- // make sure we never miss a version.- assertTrue("Version: " + version + " missing", binaryVersions.remove(version));- }- BINARY_SUPPORTED_VERSIONS = Collections.unmodifiableSet(binaryVersions);}/**@@ -161,7 +151,7 @@ public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase {private static Version getLatestPreviousMajorVersion() {Version lastPrevMajorVersion = null;for (Version v : getAllCurrentVersions()) {- if (v.major == Version.MIN_SUPPORTED_MAJOR+ if (v.major == Version.LATEST.major - 1&& (lastPrevMajorVersion == null || v.onOrAfter(lastPrevMajorVersion))) {lastPrevMajorVersion = v;}@@ -251,6 +241,60 @@ public abstract class BackwardsCompatibilityTestBase extends LuceneTestCase {return versionAndPatterns;}+ /**+ * Like {@link #allVersion}, but only the first release of each supported major ({@code X.0.0}).+ *+ * <p>Used by tests whose indexes are generated only at major releases. The current major uses+ * {@link Version#LATEST} when that release is itself {@code X.0.0}, so the index is created on+ * the fly.+ *+ * <p>Every major from {@link Version#MIN_SUPPORTED_MAJOR} through {@link Version#LATEST} must be+ * present, so dropping a supported major cannot happen silently.+ */+ public static Iterable<Object[]> allInitialMajorVersion(String name, String... suffixes) {+ List<Object> patterns = new ArrayList<>();+ for (String suffix : suffixes) {+ patterns.add(createPattern(name, suffix));+ }++ List<Version> versions = new ArrayList<>();+ Set<Integer> majors = new HashSet<>();+ for (Version v : getAllCurrentVersions()) {+ if (v.major >= Version.MIN_SUPPORTED_MAJOR+ && v.minor == 0+ && v.bugfix == 0+ && v.prerelease == 0) {+ versions.add(v);+ majors.add(v.major);+ }+ }++ List<Integer> missing = new ArrayList<>();+ for (int major = Version.MIN_SUPPORTED_MAJOR; major <= Version.LATEST.major; major++) {+ if (majors.contains(major) == false) {+ missing.add(major);+ }+ }+ if (missing.isEmpty() == false) {+ throw new AssertionError(+ "Missing first-release BWC index coverage for major version(s) "+ + missing+ + " (supported majors are "+ + Version.MIN_SUPPORTED_MAJOR+ + " through "+ + Version.LATEST.major+ + ")");+ }++ List<Object[]> versionAndPatterns = new ArrayList<>();+ for (Version v : versions) {+ for (Object p : patterns) {+ versionAndPatterns.add(new Object[] {v, p});+ }+ }+ return versionAndPatterns;+ }+public String indexName(Version version) {return String.format(Locale.ROOT, indexPattern, version);}diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.javaindex 2fff52dd1b7..d8d73c84723 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java@@ -199,18 +199,15 @@ public class TestAncientIndicesCompatibility extends LuceneTestCase {checker.setInfoStream(new PrintStream(bos, false, UTF_8));checker.setLevel(CheckIndex.Level.MIN_LEVEL_FOR_INTEGRITY_CHECKS);CheckIndex.Status indexStatus = checker.checkIndex();- if (version.startsWith("9.")) {- assertTrue(indexStatus.clean);- } else {- assertFalse(indexStatus.clean);- // CheckIndex doesn't enforce a minimum version, so we either get an- // IndexFormatTooOldException- // or an IllegalArgumentException saying that the codec doesn't exist.- boolean formatTooOld =- bos.toString(UTF_8).contains(IndexFormatTooOldException.class.getName());- boolean missingCodec = bos.toString(UTF_8).contains("Could not load codec");- assertTrue(formatTooOld || missingCodec);- }++ assertFalse(indexStatus.clean);+ // CheckIndex doesn't enforce a minimum version, so we either get an+ // IndexFormatTooOldException+ // or an IllegalArgumentException saying that the codec doesn't exist.+ boolean formatTooOld =+ bos.toString(UTF_8).contains(IndexFormatTooOldException.class.getName());+ boolean missingCodec = bos.toString(UTF_8).contains("Could not load codec");+ assertTrue(formatTooOld || missingCodec);checker.close();dir.close();diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.javaindex 389e519d5ca..89343abf203 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBasicBackwardsCompatibility.java@@ -254,13 +254,12 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestBwriter.addDocument(doc);}- public static void searchIndex(- Directory dir, String oldName, int minIndexMajorVersion, Version nameVersion)+ public static void searchIndex(Directory dir, String oldName, Version nameVersion)throws IOException {// QueryParser parser = new QueryParser("contents", new MockAnalyzer(random));// Query query = parser.parse("handle:1");IndexCommit indexCommit = DirectoryReader.listCommits(dir).get(0);- IndexReader reader = DirectoryReader.open(indexCommit, minIndexMajorVersion, null);+ IndexReader reader = DirectoryReader.open(indexCommit, null);IndexSearcher searcher = newSearcher(reader);TestUtil.checkIndex(dir);@@ -755,7 +754,7 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestB}public void testSearchOldIndex() throws Exception {- searchIndex(directory, indexPattern, Version.MIN_SUPPORTED_MAJOR, version);+ searchIndex(directory, indexPattern, version);}public void testFullyMergeOldIndex() throws Exception {@@ -832,7 +831,10 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestBexpectThrows(IllegalArgumentException.class, () -> TestUtil.addIndexesSlowly(w, reader));assertEquals(e.getMessage(),- "Cannot merge a segment that has been created with major version 10 into this index which has been created by major version 11");+ "Cannot merge a segment that has been created with major version "+ + version.major+ + " into this index which has been created by major version "+ + Version.LATEST.major);w.close();targetDir2.close();@@ -871,11 +873,11 @@ public class TestBasicBackwardsCompatibility extends BackwardsCompatibilityTestBpublic void testOpenModeAndCreatedVersion() throws IOException {Directory dir = newDirectory(directory);int majorVersion = SegmentInfos.readLatestCommit(dir).getIndexCreatedVersionMajor();- if (majorVersion != Version.MIN_SUPPORTED_MAJOR && majorVersion != Version.LATEST.major) {+ if (majorVersion < Version.MIN_SUPPORTED_MAJOR || majorVersion > Version.LATEST.major) {fail(- "expected one of: ["+ "expected between: ["+ Version.MIN_SUPPORTED_MAJOR- + ", "+ + " and "+ Version.LATEST.major+ "] but got: "+ majorVersion);diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBinaryBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBinaryBackwardsCompatibility.javadeleted file mode 100644index ffb3fd5e996..00000000000--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestBinaryBackwardsCompatibility.java+++ /dev/null@@ -1,86 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-package org.apache.lucene.backward_index;--import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;-import java.io.IOException;-import java.util.ArrayList;-import java.util.List;-import org.apache.lucene.index.DirectoryReader;-import org.apache.lucene.index.IndexCommit;-import org.apache.lucene.index.IndexFormatTooOldException;-import org.apache.lucene.index.SegmentInfos;-import org.apache.lucene.index.StandardDirectoryReader;-import org.apache.lucene.store.Directory;-import org.apache.lucene.tests.store.BaseDirectoryWrapper;-import org.apache.lucene.util.Version;--public class TestBinaryBackwardsCompatibility extends BackwardsCompatibilityTestBase {-- static final int MIN_BINARY_SUPPORTED_MAJOR = Version.MIN_SUPPORTED_MAJOR - 1;- static final String INDEX_NAME = "unsupported";- static final String SUFFIX_CFS = "-cfs";- static final String SUFFIX_NO_CFS = "-nocfs";-- public TestBinaryBackwardsCompatibility(Version version, String pattern) {- super(version, pattern);- }-- @ParametersFactory(argumentFormatting = "Lucene-Version:%1$s; Pattern: %2$s")- public static Iterable<Object[]> testVersionsFactory() {- List<Object[]> params = new ArrayList<>();- for (Version version : BINARY_SUPPORTED_VERSIONS) {- params.add(new Object[] {version, createPattern(INDEX_NAME, SUFFIX_CFS)});- params.add(new Object[] {version, createPattern(INDEX_NAME, SUFFIX_NO_CFS)});- }- return params;- }-- @Override- void verifyUsesDefaultCodec(Directory dir, String name) throws IOException {- // don't this will fail since the indices are not supported- }-- @Override- protected void createIndex(Directory directory) throws IOException {- fail("not supported");- }-- @Nightly- public void testReadNMinusTwoCommit() throws IOException {- try (BaseDirectoryWrapper dir = newDirectory(directory)) {- IndexCommit commit = DirectoryReader.listCommits(dir).get(0);- StandardDirectoryReader.open(commit, MIN_BINARY_SUPPORTED_MAJOR, null).close();- }- }-- @Nightly- public void testReadNMinusTwoSegmentInfos() throws IOException {- try (BaseDirectoryWrapper dir = newDirectory(directory)) {- expectThrows(- IndexFormatTooOldException.class,- () -> SegmentInfos.readLatestCommit(dir, Version.MIN_SUPPORTED_MAJOR));- SegmentInfos.readLatestCommit(dir, MIN_BINARY_SUPPORTED_MAJOR);- }- }-- @Nightly- public void testSearchOldIndex() throws Exception {- TestBasicBackwardsCompatibility.searchIndex(- directory, indexPattern, MIN_BINARY_SUPPORTED_MAJOR, version);- }-}diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestDVUpdateBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestDVUpdateBackwardsCompatibility.javaindex cfe29028cdb..07ff0b83afe 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestDVUpdateBackwardsCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestDVUpdateBackwardsCompatibility.java@@ -18,9 +18,7 @@ package org.apache.lucene.backward_index;import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;import java.io.IOException;-import java.util.ArrayList;import java.util.Arrays;-import java.util.List;import org.apache.lucene.document.BinaryDocValuesField;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;@@ -53,13 +51,13 @@ public class TestDVUpdateBackwardsCompatibility extends BackwardsCompatibilityTesuper(version, pattern);}- /** Provides the initial release of the previous major to the test-framework */+ /**+ * Indexes are generated only at the first release of each major. The factory fails if any+ * supported major is missing so coverage cannot be dropped by deleting a version from a list.+ */@ParametersFactory(argumentFormatting = "Lucene-Version:%1$s; Pattern: %2$s")public static Iterable<Object[]> testVersionsFactory() {- List<Object[]> params = new ArrayList<>();- // TODO - WHY ONLY on the first major version?- params.add(new Object[] {Version.LUCENE_10_0_0, createPattern(INDEX_NAME, SUFFIX)});- return params;+ return allInitialMajorVersion(INDEX_NAME, SUFFIX);}@Overridediff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestEmptyIndexBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestEmptyIndexBackwardsCompatibility.javaindex 2367e20d6a0..1d40332d972 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestEmptyIndexBackwardsCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestEmptyIndexBackwardsCompatibility.java@@ -18,8 +18,6 @@ package org.apache.lucene.backward_index;import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;import java.io.IOException;-import java.util.ArrayList;-import java.util.List;import org.apache.lucene.index.IndexWriter;import org.apache.lucene.index.IndexWriterConfig;import org.apache.lucene.index.NoMergePolicy;@@ -48,19 +46,19 @@ public class TestEmptyIndexBackwardsCompatibility extends BackwardsCompatibility}}- /** Provides the initial release of the previous major to the test-framework */+ /**+ * Indexes are generated only at the first release of each major. The factory fails if any+ * supported major is missing so coverage cannot be dropped by deleting a version from a list.+ */@ParametersFactory(argumentFormatting = "Lucene-Version:%1$s; Pattern: %2$s")public static Iterable<Object[]> testVersionsFactory() {- List<Object[]> params = new ArrayList<>();- // TODO - WHY ONLY on the first major version?- params.add(new Object[] {Version.LUCENE_10_0_0, createPattern(INDEX_NAME, SUFFIX)});- return params;+ return allInitialMajorVersion(INDEX_NAME, SUFFIX);}public void testUpgradeEmptyOldIndex() throws Exception {try (Directory dir = newDirectory(directory)) {TestIndexUpgradeBackwardsCompatibility.newIndexUpgrader(dir).upgrade();- TestIndexUpgradeBackwardsCompatibility.checkAllSegmentsUpgraded(dir, 10);+ TestIndexUpgradeBackwardsCompatibility.checkAllSegmentsUpgraded(dir, version.major);}}}diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMinSupportedMajorBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMinSupportedMajorBackwardsCompatibility.javaindex 82246624445..7cc6de98e2b 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMinSupportedMajorBackwardsCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMinSupportedMajorBackwardsCompatibility.java@@ -202,7 +202,7 @@ public class TestMinSupportedMajorBackwardsCompatibility extends BackwardsCompat// If this test fails, it likely means the constant was changed and the// implications need to be considered (tests updated, documentation updated, etc.)assertEquals(- "MIN_SUPPORTED_MAJOR should be 10 for the relaxed upgrade policy", 10, MIN_SUPPORTED_MAJOR);+ "MIN_SUPPORTED_MAJOR should be 9 for the relaxed upgrade policy", 9, MIN_SUPPORTED_MAJOR);// Additional validation: MIN_SUPPORTED_MAJOR should be <= current majorassertTrue(diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMoreTermsBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMoreTermsBackwardsCompatibility.javaindex d56f6c6e23a..4ab65a35d3c 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMoreTermsBackwardsCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestMoreTermsBackwardsCompatibility.java@@ -18,8 +18,6 @@ package org.apache.lucene.backward_index;import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;import java.io.IOException;-import java.util.ArrayList;-import java.util.List;import java.util.Random;import org.apache.lucene.document.Document;import org.apache.lucene.document.NumericDocValuesField;@@ -39,7 +37,7 @@ import org.apache.lucene.util.Version;@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/apache/lucene/issues/13847")public class TestMoreTermsBackwardsCompatibility extends BackwardsCompatibilityTestBase {- static final String INDEX_NAME = "unsupported.moreterms";+ static final String INDEX_NAME = "moreterms";static final String SUFFIX = "";@@ -49,9 +47,7 @@ public class TestMoreTermsBackwardsCompatibility extends BackwardsCompatibilityT@ParametersFactory(argumentFormatting = "Lucene-Version:%1$s; Pattern: %2$s")public static Iterable<Object[]> testVersionsFactory() {- List<Object[]> params = new ArrayList<>();- params.add(new Object[] {Version.fromBits(9, 0, 0), createPattern(INDEX_NAME, SUFFIX)});- return params;+ return allInitialMajorVersion(INDEX_NAME, SUFFIX);}@Overridediff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.dvupdates.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/dvupdates.9.0.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.dvupdates.9.0.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/dvupdates.9.0.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.empty.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/empty.9.0.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.empty.9.0.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/empty.9.0.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.0.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.0.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.0.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.0.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.0.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.1.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.1.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.1.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.1.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.1.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.1.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.1.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.1.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.10.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.10.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.10.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.10.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.10.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.10.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.10.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.10.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.1-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.1-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.1-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.1-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.1-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.1-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.11.1-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.11.1-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.1-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.1-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.1-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.1-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.1-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.1-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.1-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.1-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.2-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.2-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.2-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.2-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.2-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.2-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.2-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.2-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.3-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.3-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.3-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.3-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.3-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.3-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.12.3-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.12.3-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.2.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.2.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.2.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.2.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.2.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.2.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.2.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.2.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.3.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.3.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.3.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.3.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.3.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.3.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.3.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.3.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.1-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.1-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.1-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.1-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.1-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.1-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.1-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.1-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.2-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.2-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.2-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.2-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.2-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.2-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.4.2-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.4.2-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.5.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.5.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.5.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.5.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.5.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.5.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.5.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.5.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.6.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.6.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.6.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.6.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.6.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.6.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.6.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.6.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.7.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.7.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.7.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.7.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.7.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.7.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.7.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.7.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.8.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.8.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.8.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.8.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.8.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.8.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.8.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.8.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.0-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.0-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.0-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.0-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.0-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.0-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.0-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.0-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.1-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.1-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.1-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.1-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.1-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.1-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.1-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.1-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.2-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.2-cfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.2-cfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.2-cfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.2-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.2-nocfs.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.9.9.2-nocfs.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/index.9.9.2-nocfs.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.10.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.10.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.10.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.10.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.11.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.11.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.11.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.11.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.11.1.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.11.1.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.11.1.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.11.1.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.1.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.1.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.1.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.1.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.2.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.2.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.2.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.2.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.3.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.3.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.int7_hnsw.9.12.3.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/int7_hnsw.9.12.3.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.moreterms.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/moreterms.9.0.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.moreterms.9.0.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/moreterms.9.0.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.0.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.0.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.0.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.1.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.1.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.1.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.1.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.10.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.10.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.10.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.10.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.11.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.11.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.11.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.11.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.11.1.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.11.1.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.11.1.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.11.1.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.1.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.1.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.1.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.1.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.2.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.2.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.2.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.2.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.3.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.3.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.12.3.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.12.3.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.2.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.2.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.2.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.2.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.3.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.3.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.3.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.3.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.4.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.4.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.4.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.4.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.4.1.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.4.1.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.4.1.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.4.1.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.4.2.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.4.2.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.4.2.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.4.2.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.5.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.5.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.5.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.5.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.6.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.6.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.6.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.6.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.7.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.7.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.7.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.7.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.8.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.8.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.8.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.8.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.9.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.9.0.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.9.0.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.9.0.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.9.1.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.9.1.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.9.1.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.9.1.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.9.2.zip b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.9.2.zipsimilarity index 100%rename from lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported.sorted.9.9.2.ziprename to lucene/backward-codecs/src/test/org/apache/lucene/backward_index/sorted.9.9.2.zipdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported_versions.txt b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported_versions.txtindex 3a9006d16aa..88f4566d226 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported_versions.txt+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/unsupported_versions.txt@@ -121,21 +121,3 @@8.11.28.11.38.11.4-9.0.0-9.1.0-9.2.0-9.3.0-9.4.0-9.4.1-9.4.2-9.5.0-9.6.0-9.7.0-9.8.0-9.9.0-9.9.1-9.9.2-9.10.0-9.11.0-9.11.1-9.12.0diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/versions.txt b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/versions.txtindex ffa069807e8..8acc57396ba 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/versions.txt+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/versions.txt@@ -17,6 +17,8 @@9.11.19.12.09.12.1+9.12.2+9.12.310.0.010.1.010.2.0diff --git a/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.java b/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.javaindex 2077e29419d..78ba064860d 100644--- a/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.java+++ b/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.java@@ -168,11 +168,13 @@ public abstract class DirectoryReader extends BaseCompositeReader<LeafReader> {/*** Expert: returns an IndexReader reading the index on the given {@link IndexCommit}. This method- * allows to open indices that were created with a Lucene version older than N-1 provided that all- * codecs for this index are available in the classpath and the segment file format used was- * created with Lucene 7 or newer. Users of this API must be aware that Lucene doesn't guarantee- * semantic compatibility for indices created with versions older than N-1. All backwards- * compatibility aside from the file format is optional and applied on a best effort basis.+ * allows to open indices that were created with a Lucene version older than {@link+ * org.apache.lucene.util.Version#MIN_SUPPORTED_MAJOR} provided that all codecs for this index are+ * available in the classpath and the segment file format used was created with Lucene 7 or newer.+ * Users of this API must be aware that Lucene doesn't guarantee semantic compatibility for+ * indices created with versions older than {@link+ * org.apache.lucene.util.Version#MIN_SUPPORTED_MAJOR}. All backwards compatibility aside from the+ * file format is optional and applied on a best effort basis.** @param commit the commit point to open* @param minSupportedMajorVersion the minimum supported major index version@@ -193,11 +195,13 @@ public abstract class DirectoryReader extends BaseCompositeReader<LeafReader> {/*** Expert: returns an IndexReader reading the index on the given {@link IndexCommit}. This method- * allows to open indices that were created with a Lucene version older than N-1 provided that all- * codecs for this index are available in the classpath and the segment file format used was- * created with Lucene 7 or newer. Users of this API must be aware that Lucene doesn't guarantee- * semantic compatibility for indices created with versions older than N-1. All backwards- * compatibility aside from the file format is optional and applied on a best effort basis.+ * allows to open indices that were created with a Lucene version older than {@link+ * org.apache.lucene.util.Version#MIN_SUPPORTED_MAJOR} provided that all codecs for this index are+ * available in the classpath and the segment file format used was created with Lucene 7 or newer.+ * Users of this API must be aware that Lucene doesn't guarantee semantic compatibility for+ * indices created with versions older than {@link+ * org.apache.lucene.util.Version#MIN_SUPPORTED_MAJOR}. All backwards compatibility aside from the+ * file format is optional and applied on a best effort basis.** @param commit the commit point to open* @param minSupportedMajorVersion the minimum supported major index versiondiff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.javaindex c155b077b62..96a4a778799 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java@@ -178,10 +178,10 @@ public final class IndexWriterConfig extends LiveIndexWriterConfig {* index already exists, then this value is ignored. Default value is the {@link Version#major* major} of the {@link Version#LATEST latest version}.*- * <p><b>NOTE</b>: Changing the creation version reduces backward compatibility guarantees. For- * instance an index created with Lucene 8 with a compatibility version of 7 can't be read with- * Lucene 9 due to the fact that Lucene only supports reading indices created with the current or- * previous major release.+ * <p><b>NOTE</b>: Changing the creation version reduces backward compatibility guarantees. The+ * value must be between {@link Version#MIN_SUPPORTED_MAJOR} and the major of {@link+ * Version#LATEST}, inclusive. A lower creation version means the index will become unopenable+ * sooner when {@link Version#MIN_SUPPORTED_MAJOR} is later bumped.** @param indexCreatedVersionMajor the major version to use for compatibility*/@@ -193,10 +193,10 @@ public final class IndexWriterConfig extends LiveIndexWriterConfig {+ ", but got: "+ indexCreatedVersionMajor);}- if (indexCreatedVersionMajor < Version.LATEST.major - 1) {+ if (indexCreatedVersionMajor < Version.MIN_SUPPORTED_MAJOR) {throw new IllegalArgumentException("indexCreatedVersionMajor may not be less than the minimum supported version: "- + (Version.LATEST.major - 1)+ + (Version.MIN_SUPPORTED_MAJOR)+ ", but got: "+ indexCreatedVersionMajor);}diff --git a/lucene/core/src/java/org/apache/lucene/util/Version.java b/lucene/core/src/java/org/apache/lucene/util/Version.javaindex 57dee2edcb1..8e5d24da481 100644--- a/lucene/core/src/java/org/apache/lucene/util/Version.java+++ b/lucene/core/src/java/org/apache/lucene/util/Version.java@@ -31,6 +31,111 @@ import java.util.jar.Manifest;*/public final class Version {+ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_0_0 = new Version(9, 0, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_1_0 = new Version(9, 1, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_2_0 = new Version(9, 2, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_3_0 = new Version(9, 3, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_4_0 = new Version(9, 4, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_4_1 = new Version(9, 4, 1);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_4_2 = new Version(9, 4, 2);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_5_0 = new Version(9, 5, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_6_0 = new Version(9, 6, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_7_0 = new Version(9, 7, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_8_0 = new Version(9, 8, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_9_0 = new Version(9, 9, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_9_1 = new Version(9, 9, 1);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_9_2 = new Version(9, 9, 2);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_10_0 = new Version(9, 10, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_11_0 = new Version(9, 11, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_11_1 = new Version(9, 11, 1);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_12_0 = new Version(9, 12, 0);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_12_1 = new Version(9, 12, 1);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_12_2 = new Version(9, 12, 2);++ /**+ * @deprecated Use latest+ */+ @Deprecated public static final Version LUCENE_9_12_3 = new Version(9, 12, 3);+/*** @deprecated Use latest*/@@ -162,7 +267,8 @@ public final class Version {/*** Constant for the minimal supported major version number of an index. This version is defined by- * the major version number that initially created the index.+ * the major version number that initially created the index. Segment codecs from this constant+ * through {@link #LATEST} are built-in.** <p>This constant is manually controlled and should only be bumped when format changes make it* impossible to safely read older indexes. Examples include:@@ -176,18 +282,6 @@ public final class Version {* <p>This constant should NOT be bumped automatically with major version number releases. The* goal is to allow users to upgrade across multiple major version numbers when safe to do so.*- * <p><b>Two-tier version policy:</b>- *- * <ul>- * <li><b>Index opening policy:</b> An index can be opened if its {@code- * indexCreatedVersionMajor} is >= this constant, regardless of how many major version- * numbers have been released since.- * <li><b>Codec reader policy:</b> Segment codecs are only shipped for the current major version- * number and the immediately previous major version number. When no format breaks occur- * between consecutive major version numbers, the previous major version number reader can- * read segments from older major version numbers that use the same format.- * </ul>- ** <p><b>When to bump this constant:</b>** <ul>@@ -211,7 +305,7 @@ public final class Version {** @since 11.0.0*/- public static final int MIN_SUPPORTED_MAJOR = 10;+ public static final int MIN_SUPPORTED_MAJOR = 9;/*** @see #getPackageImplementationVersion()diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.javaindex 9b8fed13583..89e2f335e67 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java@@ -4049,18 +4049,22 @@ public class TestIndexWriter extends LuceneTestCase {e =expectThrows(IllegalArgumentException.class,- () -> new IndexWriterConfig().setIndexCreatedVersionMajor(Version.LATEST.major - 2));+ () ->+ new IndexWriterConfig()+ .setIndexCreatedVersionMajor(Version.MIN_SUPPORTED_MAJOR - 1));assertEquals("indexCreatedVersionMajor may not be less than the minimum supported version: "- + (Version.LATEST.major - 1)+ + (Version.MIN_SUPPORTED_MAJOR)+ ", but got: "- + (Version.LATEST.major - 2),+ + (Version.MIN_SUPPORTED_MAJOR - 1),e.getMessage());- for (int previousMajor = Version.LATEST.major - 1;+ for (int previousMajor = Version.MIN_SUPPORTED_MAJOR;previousMajor <= Version.LATEST.major;previousMajor++) {- for (int newMajor = Version.LATEST.major - 1; newMajor <= Version.LATEST.major; newMajor++) {+ for (int newMajor = Version.MIN_SUPPORTED_MAJOR;+ newMajor <= Version.LATEST.major;+ newMajor++) {for (OpenMode openMode : OpenMode.values()) {try (Directory dir = newDirectory()) {try (IndexWriter w =