projects
/
lui-solr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rename solr 4
[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" />'