Skip to content

Instantly share code, notes, and snippets.

@hectorcorrea
Last active July 5, 2017 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hectorcorrea/d87545151227cb26ff45b4d66b2731eb to your computer and use it in GitHub Desktop.
Save hectorcorrea/d87545151227cb26ff45b4d66b2731eb to your computer and use it in GitHub Desktop.
Solr shortcuts
# 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