Monday, November 19, 2012

Delete Documents From Solr Index By Query

If you simply want to delete documents from your Solr index by using the web interface, here's a code snippet that lets you do so:


This lets you delete documents where the id field matches XXXXX.
If you want to delete items that matches more than one field, just add another query:


If you want to delete all items in the index, just use this query:



No comments: