Yonik Seeley-2 wrote:
> 
> 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
> 
> 

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?

Mark
-- 
View this message in context: 
http://old.nabble.com/Delete%2C-commit%2C-optimize-doesn%27t-reduce-index-file-size-tp26958067p26960857.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to