Hi,

That is as expected. When IndexReader or IndexSearcher are open, the snapshot 
of this index is preserved until you reopen it, as all readers only see the 
index in the state when it was opened, so disk space is still acquired and on 
windows you even see the files. For optimize (what you should really do only 
when you deleted lots of documents) this triples the required space. This is 
even part of Javadocs.

When you are finished with updating the index you have to reopen your readers.

Uwe
--
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen
http://www.thetaphi.de



Phil Herold <pher...@d-wise.com> schrieb:

New information: it appears that the index size increasing (not always doubling 
but going up significantly) occurs when I search the index while building it. 
Calling indexWriter.optimize(1, true); when I'm done adding documents sometimes 
reduces the index down to size, but not always. Has anyone else seen this? 

Reply via email to