Is there another way to make this happen without making further changes to the index? Maybe a bounce of the servlet server?
On Tue, Dec 29, 2009 at 1:23 PM, markwaddle <m...@markwaddle.com> wrote: I have an index that used to have ~38M docs at 17.2GB. I deleted all but 13K docs using a delete by query, commit and then optimize. A "*:*" query now returns 13K docs. The problem is that the files on disk are still 17.1GB in size. I expected the optimize to shrink the files. Is there a way I can shrink them now that the index only has 13K docs? Are you on Windows? The IndexWriter can't delete files in use by the current IndexReader (like it can in UNIX) when the commit is done. If you make further changes to the index and do a commit, you should see the space go down. -Yonik http://www.lucidimagination.com