3 if [ "$1" != "YES" ] ; then
4 echo "No confirmation given"
8 HOST_PORT=localhost:8080
10 if [ "$2" != "" ] ; then
14 curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" expungeDeletes="true" />'