3 HOST_PORT="localhost:8080"
5 if [ "$2" != "" ] ; then
10 if [ "$3" != "" ] ; then
14 if [ "$1" == "" ] ; then
15 echo "$0 databaseid [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)"
19 curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
20 curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'