Either optimize() or expungeDeletes() will reclaim the disk space used by deleted documents.

Also, over time, as segments that have marked deletions are merged, the disk space is also reclaimed.

Mike

dan at gmail wrote:


Hello,

Could someone please confirm that calling indexWriter.optimize() is the only
way to clean out the deleted documents from the disk?

I understand that indexWriter.deleteDocuments() does not clean the disk
space, and I tested that calling after indexWriter.flush() and
indexWriter.close() after indexWriter.deleteDocuments() does not clean the disk space either. So do they only mark the documents have been deleted, then which method really do the "delete" the documents (from the disk)?

Thanks,
Dan
--
View this message in context: 
http://www.nabble.com/How-did-Lucene-clean-out-the-deleted-documents-from-the-disk--tp18534562p18534562.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to