On Thu, Aug 14, 2008 at 6:31 PM, Chris Harris <[EMAIL PROTECTED]> wrote:
> (The only time a
> segment will be modified is if you delete files from it, and that will
> only alter the segment's .del file, leaving .tis and friends alone.)

Actually, these days .del files are even versioned.

> I don't know exactly what happened, but I restarted Solr once or twice
> and then when I started adding documents again, Solr started deleting
> segment files, and brought things down from like 500GB to like 18GB. I
> feel like I read somewhere that Solr sometimes has trouble deleting
> segment files when running on Windows. (I'm on Windows right now.) I
> wonder if that's related.

Right... file deletion just tends to be delayed a bit longer on Windows.
For example, if you do an optimize, all the segments will be merged
into a single segment, but because a reader is still holding open the
old index, you will see both sets of files.  The old set of files will
be deleted when a new IndexWriter is opened after the old reader is
closed.

-Yonik

Reply via email to