Apache Lucene open-source search software
Don't add sorted indexes for non-back-compat versions
Steve Rowe8388b195cfe4
diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.pyindex 645dc26ba5c..9ca26b3d3c0 100644--- a/dev-tools/scripts/addBackcompatIndexes.py+++ b/dev-tools/scripts/addBackcompatIndexes.py@@ -245,7 +245,9 @@ def main():current_version = scriptutil.Version.parse(scriptutil.find_current_version())create_and_add_index(source, 'cfs', c.version, current_version, c.temp_dir)create_and_add_index(source, 'nocfs', c.version, current_version, c.temp_dir)- if c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2):+ should_make_sorted = current_version.is_back_compat_with(c.version) \+ and (c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2))+ if should_make_sorted:create_and_add_index(source, 'sorted', c.version, current_version, c.temp_dir)if c.version.minor == 0 and c.version.bugfix == 0 and c.version.major < current_version.major:create_and_add_index(source, 'moreterms', c.version, current_version, c.temp_dir)@@ -255,7 +257,7 @@ def main():print('\nAdding backwards compatibility tests')update_backcompat_tests(['cfs', 'nocfs'], c.version, current_version)- if c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2):+ if should_make_sorted:update_backcompat_tests(['sorted'], c.version, current_version)print('\nTesting changes')