3 if [ "$1" == "" ] ; then
4 echo "$0 databaseid [HOST:PORT] "
7 HOSTPORT="localhost:8080"
9 if [ "$2" != "" ] ; then
13 curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
14 curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'