You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2015/08/03 20:41:47 UTC

svn commit: r1693954 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/CHANGES.txt solr/bin/ solr/bin/post

Author: ehatcher
Date: Mon Aug  3 18:41:46 2015
New Revision: 1693954

URL: http://svn.apache.org/r1693954
Log:
SOLR-7769: Add bin/post -p alias for -port parameter (merged from trunk r1693953)

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/solr/bin/   (props changed)
    lucene/dev/branches/branch_5x/solr/bin/post

Modified: lucene/dev/branches/branch_5x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/CHANGES.txt?rev=1693954&r1=1693953&r2=1693954&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/solr/CHANGES.txt Mon Aug  3 18:41:46 2015
@@ -114,6 +114,8 @@ New Features
 * SOLR-7799: Added includeIndexFieldFlags (backwards compatible default is true) to /admin/luke.
   When there are many fields in the index, setting this flag to false can dramatically speed up requests. (ehatcher)
 
+* SOLR-7769: Add bin/post -p alias for -port parameter.  (ehatcher)
+
 Bug Fixes
 ----------------------
 

Modified: lucene/dev/branches/branch_5x/solr/bin/post
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/bin/post?rev=1693954&r1=1693953&r2=1693954&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/bin/post (original)
+++ lucene/dev/branches/branch_5x/solr/bin/post Mon Aug  3 18:41:46 2015
@@ -66,7 +66,7 @@ function print_usage() {
   echo "  Solr options:"
   echo "    -url <base Solr update URL> (overrides collection, host, and port)"
   echo "    -host <host> (default: localhost)"
-  echo "    -port <port> (default: 8983)"
+  echo "    -p or -port <port> (default: 8983)"
   echo "    -commit yes|no (default: yes)"
   # optimize intentionally omitted, but can be used as '-optimize yes' (default: no)
   echo ""
@@ -134,6 +134,10 @@ while [ $# -gt 0 ]; do
         # Special case, pull out collection name
         shift
         COLLECTION="$1"
+      elif [[ "$1" == "-p" ]]; then
+        # -p => -port for convenience and compatability with bin/solr start
+        shift
+        PROPS+=("-Dport=$1")
       elif [[ ("$1" == "-d" || "$1" == "--data" || "$1" == "-") ]]; then
         if [[ -s /dev/stdin ]]; then
           MODE="stdin"