projects
/
lui-solr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d667f5
)
More configurable
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 3 Jul 2013 13:12:33 +0000
(15:12 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 3 Jul 2013 13:12:33 +0000
(15:12 +0200)
optimize_solr.sh
patch
|
blob
|
history
diff --git
a/optimize_solr.sh
b/optimize_solr.sh
index
90d9a26
..
1c22ed8
100755
(executable)
--- a/
optimize_solr.sh
+++ b/
optimize_solr.sh
@@
-4,6
+4,11
@@
if [ "$1" != "YES" ] ; then
echo "No confirmation given"
exit 1 ;
fi
-HOST=localhost
-PORT=8080
-curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" />'
\ No newline at end of file
+
+HOST_PORT=localhost:8080
+
+if [ "$2" != "" ] ; then
+ HOST_PORT="$2"
+fi
+
+curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" />'
\ No newline at end of file