X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=blobdiff_plain;f=scripts%2Fdelete_solr.sh;fp=scripts%2Fdelete_solr.sh;h=2b91d6514e1bd80c544efb21f60d3bc3829cc292;hp=0000000000000000000000000000000000000000;hb=2b52626c1213e6bf757b609316ea027a330da926;hpb=72cc72aa3299c35b8acca109bb3889e50044d6cb 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 ''