From 9a2978253abba5da0eafa189e9f606d1d27fcd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Cantu=C3=A1ria?= Date: Thu, 26 Nov 2020 12:20:54 -0300 Subject: [PATCH] Update and rename delete-records.sh to delete-all-documents.sh --- solr/bin/delete-all-documents.sh | 6 ++++++ solr/bin/delete-records.sh | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 solr/bin/delete-all-documents.sh delete mode 100644 solr/bin/delete-records.sh 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