Here is how I was testing: stop Solr, delete the "data" folder, start Solr,
start indexing, and finally check index size.

I used the same pattern for the before and after my (see my original email)
and each time I run this test, the index size ended up being larger;
restarting Solr did the trick.

Each document I'm adding is unique so there is no deletion involved here at
all.

I'm testing this on Windows, so that maybe a factor too (the OS is not
releasing file handles?!)

Steve


On Tue, Feb 16, 2016 at 11:57 AM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 2/16/2016 9:37 AM, Steven White wrote:
> > I found the issue: as soon as I restart Solr, the index size goes down.
> >
> > My index and data size must have been at a border line where some
> segments
> > are not released on my last document commit.
>
> I think the only likely thing that could cause this behavior is having
> index segments that are composed fully of deleted documents, which
> supports the idea that Upayavira mentioned.  An optimize would probably
> cause the same behavior as the restart.
>
> If you do enough indexing to cause a segment merge, that would probably
> also remove segments composed only of deleted documents.
>
> Thanks,
> Shawn
>
>

Reply via email to