#!/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 ''