diff --git a/bin/solr-jsonl-chunk-loader.sh b/bin/solr-jsonl-chunk-loader.sh index 498056a..1880c42 100755 --- a/bin/solr-jsonl-chunk-loader.sh +++ b/bin/solr-jsonl-chunk-loader.sh @@ -27,8 +27,7 @@ commit() { curl \ --silent --show-error \ $SOLR_AUTH \ - "http://${1}/solr/${COLLECTION}/update" \ - --data-binary '{ "commit": {} }' -H 'Content-type:application/json' + "http://${1}/solr/${COLLECTION}/update?commit=true" } post_json() {