lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r1693953 - in /lucene/dev/trunk/solr: CHANGES.txt bin/post
Date Mon, 03 Aug 2015 18:39:30 GMT
Author: ehatcher
Date: Mon Aug  3 18:39:29 2015
New Revision: 1693953

URL: http://svn.apache.org/r1693953
Log:
SOLR-7769: Add bin/post -p alias for -port parameter

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/bin/post

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1693953&r1=1693952&r2=1693953&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Mon Aug  3 18:39:29 2015
@@ -179,6 +179,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/trunk/solr/bin/post
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/bin/post?rev=1693953&r1=1693952&r2=1693953&view=diff
==============================================================================
--- lucene/dev/trunk/solr/bin/post (original)
+++ lucene/dev/trunk/solr/bin/post Mon Aug  3 18:39:29 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"



Mime
View raw message