You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2018/02/20 18:13:31 UTC
lucene-solr:master: LUCENE-8153: Fix usage.
Repository: lucene-solr
Updated Branches:
refs/heads/master 317a2e0c3 -> 4bb705bad
LUCENE-8153: Fix usage.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4bb705ba
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4bb705ba
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4bb705ba
Branch: refs/heads/master
Commit: 4bb705bad8fb58128a549d60e27e05a7eced17ee
Parents: 317a2e0
Author: Adrien Grand <jp...@gmail.com>
Authored: Tue Feb 20 18:59:30 2018 +0100
Committer: Adrien Grand <jp...@gmail.com>
Committed: Tue Feb 20 19:08:37 2018 +0100
----------------------------------------------------------------------
lucene/core/src/java/org/apache/lucene/index/CheckIndex.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4bb705ba/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
index 54a227c..9126b1d 100644
--- a/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
+++ b/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java
@@ -2843,6 +2843,7 @@ public final class CheckIndex implements Closeable {
* @return An Options struct
* @throws IllegalArgumentException if any of the CLI args are invalid
*/
+ @SuppressForbidden(reason = "System.err required: command line tool")
public static Options parseOptions(String[] args) {
Options opts = new Options();
@@ -2853,8 +2854,8 @@ public final class CheckIndex implements Closeable {
opts.doChecksumsOnly = true;
} else if ("-exorcise".equals(arg)) {
opts.doExorcise = true;
- } else if ("-doSlowChecks".equals(arg)) {
- System.err.println("-doSlowChecks is deprecated, use -slow instead");
+ } else if ("-crossCheckTermVectors".equals(arg)) {
+ System.err.println("-crossCheckTermVectors is deprecated, use -slow instead");
opts.doSlowChecks = true;
} else if ("-slow".equals(arg)) {
opts.doSlowChecks = true;
@@ -2883,7 +2884,7 @@ public final class CheckIndex implements Closeable {
if (opts.indexPath == null) {
throw new IllegalArgumentException("\nERROR: index path not specified" +
- "\nUsage: java org.apache.lucene.index.CheckIndex pathToIndex [-exorcise] [-doSlowChecks] [-segment X] [-segment Y] [-dir-impl X]\n" +
+ "\nUsage: java org.apache.lucene.index.CheckIndex pathToIndex [-exorcise] [-slow] [-segment X] [-segment Y] [-dir-impl X]\n" +
"\n" +
" -exorcise: actually write a new segments_N file, removing any problematic segments\n" +
" -fast: just verify file checksums, omitting logical integrity checks\n" +