From: Dennis Schafroth Date: Mon, 19 Aug 2013 10:25:28 +0000 (+0200) Subject: Moved scripts X-Git-Tag: v0.4.11~4^2~2 X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=commitdiff_plain;h=2b52626c1213e6bf757b609316ea027a330da926 Moved scripts --- diff --git a/commit_solr.sh b/commit_solr.sh deleted file mode 100644 index 2b3f6c3..0000000 --- a/commit_solr.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -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 deleted file mode 100755 index 2b91d65..0000000 --- a/delete_solr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 deleted file mode 100755 index bb4127d..0000000 --- a/optimize_solr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -if [ "$1" != "YES" ] ; then - echo "No confirmation given" - exit 1 ; -fi - -HOST_PORT=localhost:8080 - -if [ "$2" != "" ] ; then - HOST_PORT="$2" -fi - -curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '' diff --git a/scripts/commit_solr.sh b/scripts/commit_solr.sh new file mode 100644 index 0000000..2b3f6c3 --- /dev/null +++ b/scripts/commit_solr.sh @@ -0,0 +1,4 @@ +#!/bin/bash +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/scripts/delete_solr.sh b/scripts/delete_solr.sh new file mode 100755 index 0000000..2b91d65 --- /dev/null +++ b/scripts/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/scripts/optimize_solr.sh b/scripts/optimize_solr.sh new file mode 100755 index 0000000..bb4127d --- /dev/null +++ b/scripts/optimize_solr.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "$1" != "YES" ] ; then + echo "No confirmation given" + exit 1 ; +fi + +HOST_PORT=localhost:8080 + +if [ "$2" != "" ] ; then + HOST_PORT="$2" +fi + +curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary ''