mirror of https://github.com/apache/lucene.git
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:
parent
bb3f182251
commit
2ec5cc8c17
|
@ -7,7 +7,7 @@ http://s.apache.org/luceneversions
|
|||
|
||||
API Changes
|
||||
---------------------
|
||||
(No changes)
|
||||
* GITHUB#11023: Removing deprecated parameters from CheckIndex. (Jakub Slowinski)
|
||||
|
||||
New Features
|
||||
---------------------
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Reference in New Issue