projects
/
lui-solr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix: add catalina home
[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
8
HOST_PORT=localhost:8080
9
10
if [ "$2" != "" ] ; then
11
HOST_PORT="$2"
12
fi
13
14
curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" />'