Apache Solr open-source search software
SOLR-6946: Document -p port option for create_core and create_collection actions in bin/solr
Timothy Potterb92f39f3bbd3
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 7c67414e605..4f99ad10be4 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -418,6 +418,9 @@ Bug Fixes* SOLR-6793: ReplicationHandler does not destroy all of it's created SnapPullers.(Mark Miller)+* SOLR-6946: Document -p port option for the create_core and create_collection actions in+ bin/solr (Timothy Potter)+Optimizations----------------------diff --git a/solr/bin/solr b/solr/bin/solrindex 1af1354f2cc..6c9baf15855 100755--- a/solr/bin/solr+++ b/solr/bin/solr@@ -225,6 +225,10 @@ function print_usage() {echo " Alternatively, you can pass the path to your own configuration directory instead of using"echo " one of the built-in configurations, such as: bin/solr create_core -n mycore -c /tmp/myconfig"echo ""+ echo " -p <port> Port of a local Solr instance where you want to create the new core"+ echo " If not specified, the script will search the local system for a running"+ echo " Solr instance and will use the port of the first server it finds."+ echo ""elif [ "$CMD" == "create_collection" ]; thenecho ""echo "Usage: solr create_collection [-n name] [-c configset] [-shards #] [-replicationFactor #]"@@ -245,6 +249,9 @@ function print_usage() {echo ""echo " -replicationFactor <#> Number of copies of each document in the collection, default is 1 (no replication)"echo ""+ echo " -p <port> Port of a local Solr instance where you want to create the new collection"+ echo " If not specified, the script will search the local system for a running"+ echo " Solr instance and will use the port of the first server it finds."echo ""fi} # end print_usagediff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmdindex 79d917befca..a404752dd31 100644--- a/solr/bin/solr.cmd+++ b/solr/bin/solr.cmd@@ -201,6 +201,10 @@ echo sample_techproducts_configs: Example configuration with many optionalecho demonstrate the full power of Solrecho If not specified, default is: data_driven_schema_configsecho.+echo -p port Port of a local Solr instance where you want to create the new core+echo If not specified, the script will search the local system for a running+echo Solr instance and will use the port of the first server it finds.+echo.goto done:create_collection_usage@@ -220,6 +224,10 @@ echo -shards # Number of shards to split the collection intoecho.echo -replicationFactor # Number of copies of each document in the collectionecho.+echo -p port Port of a local Solr instance where you want to create the new collection+echo If not specified, the script will search the local system for a running+echo Solr instance and will use the port of the first server it finds.+echo.goto doneREM Really basic command-line arg parsing