1/18/2012

How to clean / delete your solr index

If you want to wipe / clean / delete / recreate your local index you will notice that you can´t do that using your solr admin and luke also doesn´t help.


What helps is sending this statement to your solr server:


http://localhost:8083/solr/your-index-name/update?stream.body=%3Cdelete%3E%3Cquery%3E*:*%3C/query%3E%3C/delete%3E&commit=true


This command deletes everything and performs a commit. If you are using luke you need to re-open your index to see that the changes took effect.


If you like this post it would be very nice, if you could click on some of the google ads you see on the right side. It helps me run this block and motivates me ;)

If you have any questions, feel free to leave a comment.