Skip to content

Commit

Permalink
Removing the deprecated parameters, -fast, -slow, -crossCheckTermVect…
Browse files Browse the repository at this point in the history
…ors from CheckIndex. (#11023) (#13942)

Their usage is replaced with -level with respective values of 1, 3, 3.
  • Loading branch information
slow-J authored Oct 24, 2024
1 parent bb3f182 commit 2ec5cc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ http://s.apache.org/luceneversions

API Changes
---------------------
(No changes)
* GITHUB#11023: Removing deprecated parameters from CheckIndex. (Jakub Slowinski)

New Features
---------------------
Expand Down
13 changes: 0 additions & 13 deletions lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -4284,21 +4284,8 @@ public static Options parseOptions(String[] args) {
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")) {
Expand Down

0 comments on commit 2ec5cc8

Please sign in to comment.