Even after deleting from Lucene index the size of the index remains the same. Why is this so?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   anurag_chakravarti
Posted On:   Thursday, June 24, 2004 06:02 AM

Hi,



Even after deleting from Lucene index the size of the index remains the same.


I am using

int no = IndexReader.delete( term );


The no returned here is a positive number, meaning Lucene did find and delete some documents.

Also I am closing the reader. Infact the size of the index increases by some bytes!!


Any help would greatly be appreciated.



Thanks

-Anurag

Re: Even after deleting from Lucene index the size of the index remains the same. Why is this so?

Posted By:   Otis_Gospodnetic  
Posted On:   Friday, June 25, 2004 12:16 AM

Lucene does not remove documents from the index immediately. Does your index decrease in size after you you delete a Document and optimize the index?
About | Sitemap | Contact