mirror of https://github.com/apache/lucene.git
Align TestGenerateBwcIndices.java with AddBackcompatindices.py (#13911)
We updated TestGenerateBwcIndices to create int7 HNSW indices instead of int8 with #13874. The corresponding python code part of the release wizard needs to be updated accordingly.
This commit is contained in:
parent
e821a1b4f8
commit
5851033047
|
@ -40,7 +40,7 @@ def create_and_add_index(source, indextype, index_version, current_version, temp
|
||||||
'cfs': 'index',
|
'cfs': 'index',
|
||||||
'nocfs': 'index',
|
'nocfs': 'index',
|
||||||
'sorted': 'sorted',
|
'sorted': 'sorted',
|
||||||
'int8_hnsw': 'int8_hnsw',
|
'int7_hnsw': 'int7_hnsw',
|
||||||
'moreterms': 'moreterms',
|
'moreterms': 'moreterms',
|
||||||
'dvupdates': 'dvupdates',
|
'dvupdates': 'dvupdates',
|
||||||
'emptyIndex': 'empty'
|
'emptyIndex': 'empty'
|
||||||
|
@ -61,7 +61,7 @@ def create_and_add_index(source, indextype, index_version, current_version, temp
|
||||||
'cfs': 'testCreateCFS',
|
'cfs': 'testCreateCFS',
|
||||||
'nocfs': 'testCreateNoCFS',
|
'nocfs': 'testCreateNoCFS',
|
||||||
'sorted': 'testCreateSortedIndex',
|
'sorted': 'testCreateSortedIndex',
|
||||||
'int8_hnsw': 'testCreateInt8HNSWIndices',
|
'int7_hnsw': 'testCreateInt7HNSWIndices',
|
||||||
'moreterms': 'testCreateMoreTermsIndex',
|
'moreterms': 'testCreateMoreTermsIndex',
|
||||||
'dvupdates': 'testCreateIndexWithDocValuesUpdates',
|
'dvupdates': 'testCreateIndexWithDocValuesUpdates',
|
||||||
'emptyIndex': 'testCreateEmptyIndex'
|
'emptyIndex': 'testCreateEmptyIndex'
|
||||||
|
@ -206,7 +206,7 @@ def main():
|
||||||
current_version = scriptutil.Version.parse(scriptutil.find_current_version())
|
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, 'cfs', c.version, current_version, c.temp_dir)
|
||||||
create_and_add_index(source, 'nocfs', c.version, current_version, c.temp_dir)
|
create_and_add_index(source, 'nocfs', c.version, current_version, c.temp_dir)
|
||||||
create_and_add_index(source, 'int8_hnsw', c.version, current_version, c.temp_dir)
|
create_and_add_index(source, 'int7_hnsw', c.version, current_version, c.temp_dir)
|
||||||
should_make_sorted = current_version.is_back_compat_with(c.version) \
|
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))
|
and (c.version.major > 6 or (c.version.major == 6 and c.version.minor >= 2))
|
||||||
if should_make_sorted:
|
if should_make_sorted:
|
||||||
|
|
Loading…
Reference in New Issue