Solr: Deleting Multiple Documents with One Request | Mats Lindh
After a bit of searching and stumbling around with Google, I finally found this very useful tip from Erik Hatcher. The clue is to simply rewrite the delete request as a delete by query, and then submit all the id's to be removed as a simple OR query. On our development machine, Solr removed 1000 documents in somewhere around 900ms. Needless to say, that's more than fast enough and solved our problem.
To sum it up; write a delete-by-query-statement as:
id:(123123 OR 13371337 OR 42424242 .. )
Read full article from Solr: Deleting Multiple Documents with One Request | Mats Lindh
No comments:
Post a Comment