diff --git a/solr/bin/delete-all-documents.sh b/solr/bin/delete-all-documents.sh new file mode 100644 index 000000000..c9a7b09cf --- /dev/null +++ b/solr/bin/delete-all-documents.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +SOLR_URL=${SOLR_URL-'http://localhost:8983/solr'} +SOLR_COLLECTION=${SOLR_COLLECTION-'sapl'} + +curl -X POST "$SOLR_URL/$SOLR_COLLECTION/update?commit=true" -H "Content-Type: text/xml" --data-binary '*:*' diff --git a/solr/bin/delete-records.sh b/solr/bin/delete-records.sh deleted file mode 100644 index d51c61cda..000000000 --- a/solr/bin/delete-records.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -SOLR_URL=${SOLR_URL-'http://localhost:8983/solr'} -SOLR_COLLECTION=${SOLR_COLLECTION-'sapl'} - -curl -X POST "$SOLR_URL/$SOLR_COLLECTION/update?commit=true&stream.body=*%3A*" \ No newline at end of file