Beside merging the segments, optimize also physically deletes all the deleted documents from the index (When you call delete, lucene only marks the documents as deleted, they physically deleted when you call optimize).
Aviran http://www.aviransplace.com -----Original Message----- From: Yura Smolsky [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 5:55 AM To: [EMAIL PROTECTED] Subject: InderWriter.optimize() Hello, lucene-user. I used FSDirectory as storage for index. And I have used optimize() method of IndexWriter to optimize index for faster access. Now I use DbDirectory (Berkley DB) as storage. Does it make sense to use optimize method on index stored in this storage?.. What does optimize do actually? Yura Smolsky --------------------------------------------------------------------- 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]
