SOLR-96: followup fix to post.sh

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1068214 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2011-02-07 23:18:20 +00:00
parent 684281a917
commit ebfa92f6db
1 changed files with 2 additions and 2 deletions

View File

@ -19,10 +19,10 @@ URL=http://localhost:8983/solr/update
for f in $FILES; do
echo Posting file $f to $URL
curl $URL --data-binary @$f -H 'Content-type:text/xml; charset=utf-8'
curl $URL --data-binary @$f -H 'Content-type:application/xml'
echo
done
#send the commit command to make sure all the changes are flushed and visible
curl $URL --data-binary '<commit/>' -H 'Content-type:text/xml; charset=utf-8'
curl $URL --data-binary '<commit/>' -H 'Content-type:application/xml'
echo