From: Dennis Schafroth Date: Thu, 25 Apr 2013 12:06:20 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr X-Git-Tag: v0.4.4~12 X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=commitdiff_plain;h=dbbba85055915647a2b84ca3b6a2347edebb445f;hp=1bbaae91039f0ef1205bdb671c658dd8cb21d7b8 Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr --- diff --git a/commit_solr.sh b/commit_solr.sh new file mode 100644 index 0000000..0cb3a43 --- /dev/null +++ b/commit_solr.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ "$1" == "" ] ; then + echo "No database id given" + exit 1 ; +fi +HOST=localhost +PORT=8080 +curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '' \ No newline at end of file diff --git a/delete_solr.sh b/delete_solr.sh new file mode 100755 index 0000000..2b91d65 --- /dev/null +++ b/delete_solr.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "$1" == "" ] ; then + echo "$0 databaseid [HOST:PORT] " + exit 1 ; +fi +HOSTPORT="localhost:8080" + +if [ "$2" != "" ] ; then + HOSTPORT="$2" +fi + +curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary "database:$1" +curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary '' diff --git a/optimize_solr.sh b/optimize_solr.sh new file mode 100755 index 0000000..90d9a26 --- /dev/null +++ b/optimize_solr.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +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 '' \ No newline at end of file