Created
October 25, 2016 12:03
-
-
Save milanchheda/ee0d37e3664f0899a32e296f0e25241c to your computer and use it in GitHub Desktop.
Bash script to delete data from Apache SOLR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl http://localhost:8080/solr/update/?commit=true -H 'Content-Type: text/xml' --data-binary '<update><delete><query>type:[content_type_name]</query></delete></update>' | |
single core: | |
curl http://localhost:8080/solr/update?commit=true -H "Content-Type: text/xml" --data-binary ':' | |
multiple core: | |
curl http://localhost:8080/solr/[CORE_NAME]/update?commit=true -H "Content-Type: text/xml" --data-binary ':' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment