Browse Source

Update and rename delete-records.sh to delete-all-documents.sh

pull/3322/head
Vinícius Cantuária 5 years ago
committed by GitHub
parent
commit
9a2978253a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      solr/bin/delete-all-documents.sh
  2. 6
      solr/bin/delete-records.sh

6
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 '<delete><query>*:*</query></delete>'

6
solr/bin/delete-records.sh

@ -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=<delete><query>*%3A*</query></delete>"
Loading…
Cancel
Save