90d9a26860c951c837f51467080bd784e69868ae
[lui-solr.git] / optimize_solr.sh
1 #!/bin/bash
2
3 if [ "$1" != "YES" ] ; then 
4     echo "No confirmation 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 '<optimize waitSearcher="false" />'