HOST_PORT="$2"
fi
-PATH=solr4
+SOLR_PATH=solr4
if [ "$2" != "" ] ; then
- PATH="$2"
+ SOLR_PATH="$2"
fi
if [ "$1" == "-h" ] ; then
- echo "$0 [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)"
+ echo "$0 [[HOST:PORT] SOLR_PATH] (default $HOST_PORT/$SOLR_PATH)"
fi
-curl http://$HOST:$PORT/$PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false" expungeDeletes="true"/>'
\ No newline at end of file
+curl http://$HOST:$PORT/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false" expungeDeletes="true"/>'
\ No newline at end of file
HOST_PORT="$2"
fi
-PATH=solr4
+SOLR_PATH=solr4
if [ "$3" != "" ] ; then
- PATH="$3"
+ SOLR_PATH="$3"
fi
if [ "$1" == "" ] ; then
exit 1 ;
fi
-curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
-curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
+curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary "<delete><query>database:$1</query></delete>"
+curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
HOST_PORT="$2"
fi
-PATH=solr4
+SOLR_PATH=solr4
if [ "$3" != "" ] ; then
- PATH="$3"
+ SOLR_PATH="$3"
fi
if [ "$1" != "YES" ] ; then
- echo "$0 YES [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)"
+ echo "$0 YES [[HOST:PORT] SOLR_PATH] (default $HOST_PORT/$SOLR_PATH)"
exit 1 ;
fi
-curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" expungeDeletes="true" />'
+curl http://${HOST_PORT}/$SOLR_PATH/update -H "Content-Type: text/xml" --data-binary '<optimize waitSearcher="false" expungeDeletes="true" />'