Last active
July 5, 2017 15:45
-
-
Save hectorcorrea/d87545151227cb26ff45b4d66b2731eb to your computer and use it in GitHub Desktop.
Solr shortcuts
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
# Delete one Solr document by ID | |
curl "http://localhost:8080/solr/blacklight-core/update?commit=true" \ | |
-H "Content-Type: text/xml" \ | |
--data-binary '<delete><id>xyz</id></delete>' | |
# Delete ALL Solr documents | |
curl "http://localhost:8080/solr/blacklight-core/update?commit=true" \ | |
-H "Content-Type: text/xml" \ | |
--data-binary '<delete><query>*:*</query></delete>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment