mirror of https://github.com/apache/lucene.git
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:
parent
684281a917
commit
ebfa92f6db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue