Yonik Seeley 7b2989a3c5 fix update URL in post.sh
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@406949 13f79535-47bb-0310-9956-ffa450edef68
2006-05-16 13:58:40 +00:00

14 lines
271 B
Bash
Executable File

#!/bin/sh
FILES=$*
URL=http://localhost:8983/solr/update
for f in $FILES; do
echo Posting file $f to $URL
curl $URL --data-binary @$f
echo
done
#send the commit command to make sure all the changes are flushed and visible
curl $URL --data-binary '<commit/>'
echo