Moved scripts
authorDennis Schafroth <dennis@indexdata.com>
Mon, 19 Aug 2013 10:25:28 +0000 (12:25 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Mon, 19 Aug 2013 10:25:28 +0000 (12:25 +0200)
commit_solr.sh [deleted file]
delete_solr.sh [deleted file]
optimize_solr.sh [deleted file]
scripts/commit_solr.sh [new file with mode: 0644]
scripts/delete_solr.sh [new file with mode: 0755]
scripts/optimize_solr.sh [new file with mode: 0755]

diff --git a/commit_solr.sh b/commit_solr.sh
deleted file mode 100644 (file)
index 2b3f6c3..0000000
+++ /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 '<commit waitFlush="false" waitSearcher="false" expungeDeletes="true"/>'
\ No newline at end of file
diff --git a/delete_solr.sh b/delete_solr.sh
deleted file mode 100755 (executable)
index 2b91d65..0000000
+++ /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 "<delete><query>database:$1</query></delete>"
-curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
diff --git a/optimize_solr.sh b/optimize_solr.sh
deleted file mode 100755 (executable)
index bb4127d..0000000
+++ /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 '<optimize waitSearcher="false" expungeDeletes="true" />'
diff --git a/scripts/commit_solr.sh b/scripts/commit_solr.sh
new file mode 100644 (file)
index 0000000..2b3f6c3
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+HOST=localhost
+PORT=8080
+curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false" expungeDeletes="true"/>'
\ No newline at end of file
diff --git a/scripts/delete_solr.sh b/scripts/delete_solr.sh
new file mode 100755 (executable)
index 0000000..2b91d65
--- /dev/null
@@ -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 "<delete><query>database:$1</query></delete>"
+curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
diff --git a/scripts/optimize_solr.sh b/scripts/optimize_solr.sh
new file mode 100755 (executable)
index 0000000..bb4127d
--- /dev/null
@@ -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 '<optimize waitSearcher="false" expungeDeletes="true" />'