Removing the deprecated parameters, -fast, -slow, -crossCheckTermVectors from CheckIndex. (#11023) (#13942)

Their usage is replaced with -level with respective values of 1, 3, 3.
This commit is contained in:
Jakub Slowinski 2024-10-24 10:46:09 +01:00 committed by GitHub
parent bb3f182251
commit 2ec5cc8c17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 14 deletions

View File

@ -7,7 +7,7 @@ http://s.apache.org/luceneversions
API Changes
---------------------
(No changes)
* GITHUB#11023: Removing deprecated parameters from CheckIndex. (Jakub Slowinski)
New Features
---------------------

View File

@ -4284,21 +4284,8 @@ public final class CheckIndex implements Closeable {
int level = Integer.parseInt(args[i]);
Level.checkIfLevelInBounds(level);
opts.level = level;
} else if ("-fast".equals(arg)) {
// Deprecated. Remove in Lucene 11.
System.err.println(
"-fast is deprecated, use '-level 1' for explicitly verifying file checksums only. This is also now the default "
+ "behaviour!");
} else if ("-slow".equals(arg)) {
// Deprecated. Remove in Lucene 11.
System.err.println("-slow is deprecated, use '-level 3' instead for slow checks");
opts.level = Level.MIN_LEVEL_FOR_SLOW_CHECKS;
} else if ("-exorcise".equals(arg)) {
opts.doExorcise = true;
} else if ("-crossCheckTermVectors".equals(arg)) {
// Deprecated. Remove in Lucene 11.
System.err.println("-crossCheckTermVectors is deprecated, use '-level 3' instead");
opts.level = Level.MAX_VALUE;
} else if (arg.equals("-verbose")) {
opts.verbose = true;
} else if (arg.equals("-segment")) {