Skip to content

Commit f5b0129

Browse files
authored
SOLR-17480: Use --data-home everywhere (#2747)
1 parent a9817c9 commit f5b0129

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

solr/bin/solr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function print_usage() {
367367

368368
if [[ "$CMD" == "start" || "$CMD" == "restart" ]]; then
369369
echo ""
370-
echo "Usage: solr $CMD [-f] [-c] [--host host] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [--solr-home solr.solr.home] [-t solr.data.home] [--jvm-opts \"jvm-opts\"] [-V]"
370+
echo "Usage: solr $CMD [-f] [-c] [--host host] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [--solr-home solr.solr.home] [--data-home solr.data.home] [--jvm-opts \"jvm-opts\"] [-V]"
371371
echo ""
372372
echo " -f Start Solr in foreground; default starts Solr in the background"
373373
echo " and sends stdout / stderr to solr-PORT-console.log"
@@ -401,7 +401,7 @@ function print_usage() {
401401
echo " on which example is run. The default value is server/solr. If passed relative dir,"
402402
echo " validation with current dir will be done, before trying default server/<dir>"
403403
echo ""
404-
echo " -t/--data-home <dir> Sets the solr.data.home system property, where Solr will store index data in <instance_dir>/data subdirectories."
404+
echo " --data-home <dir> Sets the solr.data.home system property, where Solr will store index data in <instance_dir>/data subdirectories."
405405
echo " If not set, Solr uses solr.solr.home for config and data."
406406
echo ""
407407
echo " -e <example> Name of the example to run; available examples:"

solr/bin/solr.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ goto done
307307

308308
:start_usage
309309
@echo.
310-
@echo Usage: solr %SCRIPT_CMD% [-f] [-c] [--host hostname] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [--solr-home solr.solr.home] [-t solr.data.home] [--jvm-opts "jvm-opts"] [-V]
310+
@echo Usage: solr %SCRIPT_CMD% [-f] [-c] [--host hostname] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [--solr-home solr.solr.home] [--data-home solr.data.home] [--jvm-opts "jvm-opts"] [-V]
311311
@echo.
312312
@echo -f Start Solr in foreground; default starts Solr in the background
313313
@echo and sends stdout / stderr to solr-PORT-console.log
@@ -341,7 +341,7 @@ goto done
341341
@echo on which example is run. The default value is server/solr. If passed a relative dir
342342
@echo validation with the current dir will be done before trying the default server/^<dir^>
343343
@echo.
344-
@echo -t dir Sets the solr.data.home system property, where Solr will store index data in ^<instance_dir^>/data subdirectories.
344+
@echo --data-hone dir Sets the solr.data.home system property, where Solr will store index data in ^<instance_dir^>/data subdirectories.
345345
@echo If not set, Solr uses solr.solr.home for both config and data.
346346
@echo.
347347
@echo -e example Name of the example to run; available examples:
@@ -410,6 +410,7 @@ IF "%1"=="-s" goto set_solr_home_dir
410410
IF "%1"=="--solr-home" goto set_solr_home_dir
411411
IF "%1"=="-t" goto set_solr_data_dir
412412
IF "%1"=="--solr-data" goto set_solr_data_dir
413+
IF "%1"=="--data-home" goto set_solr_data_dir
413414
IF "%1"=="-e" goto set_example
414415
IF "%1"=="--example" goto set_example
415416
IF "%1"=="--host" goto set_host

solr/solr-ref-guide/modules/deployment-guide/pages/solr-control-script-reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ If passed relative dir, validation with current dir will be done, before trying
213213
+
214214
*Example*: `bin/solr start --solr-home newHome`
215215

216-
`-t <dir>` or `--data-home <dir>`::
216+
`--data-home <dir>`::
217217
+
218218
[%autowidth,frame=none]
219219
|===

0 commit comments

Comments
 (0)