Update SOLR document without adding deleted documents
up vote 0 down vote favorite I'm running a lot of SOLR document updates which results in 100s of thousands of deleted documents and a significant increase in disk usage (100s of Gb). I'm able to remove all deleted document by doing an optimize curl http://localhost:8983/solr/core_name/update?optimize=true But this takes hours to run and requires a lot of RAM and disk space. Is there a better way to remove deleted documents from the SOLR index or to update a document without creating a deleted one? Thanks for your help! solr share | improve this question asked Nov 10 at 20:07 yoann 59 8 Update: by doing an update with commit=True and expungeDeletes=True on rare occasions it does remove some of the deleted documents that were added (from 8295 without it to 97 with it) but it also significantly increased execution time (from 2min30s to 5mins). This is helpful but I'd prefer to not add those deleted documents to begin with. – ...