Add text files
[lui-solr.git] / commit_solr.sh
1 #!/bin/bash
2
3 if [ "$1" == "" ] ; then 
4     echo "No database id given"
5     exit 1 ; 
6 fi  
7 HOST=localhost
8 PORT=8080
9 curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'