Skip to content

Instantly share code, notes, and snippets.

@manisnesan
Forked from abdollar/Delete by Query - SOLR
Created February 20, 2019 14:00
Show Gist options
  • Save manisnesan/f260ee45d4c5f71157692cd9094f60ac to your computer and use it in GitHub Desktop.
Save manisnesan/f260ee45d4c5f71157692cd9094f60ac to your computer and use it in GitHub Desktop.
Delete by Query to delete from SOLR
delete from solr - delete by query
curl http://hostname:port/solr/update --data-binary '<delete><query>id:123456</query></delete>' -H 'Content-type:text/xml; charset=utf-8'
curl http://hostname:port/solr/update --data-binary '<commit waitFlush="false" waitSearcher="false" expungeDeletes="true"/>' -H 'Content-type:text/xml; charset=utf-8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment