lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markwaddle <>
Subject Re: Delete, commit, optimize doesn't reduce index file size
Date Tue, 29 Dec 2009 21:40:21 GMT

Yonik Seeley-2 wrote:
> On Tue, Dec 29, 2009 at 1:23 PM, markwaddle <> 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

I am on Windows. Would a DataImportHandler delta-import with 1 or more
changes be a sufficient change to allow the files to be deleted?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message