Ah, my mistake then.  For some reason, I thought the optimize would
re-index the documents from the old segments into new ones, but I suppose
that would only be possible for stored=true fields.

The more you know!  Again, I always just did a full re-index from scratch
when upgrading.

On Wed, Oct 6, 2021 at 4:03 PM Shawn Heisey <apa...@elyograg.org> wrote:

> On 10/6/21 6:54 AM, Dave wrote:
> > Personally I always do a full reindex when going to a new version, just
> safer and you should always be able to do such at any point.  However if
> you got the time to spare you can do an optimize and it will force the
> segments all into the current version
>
> I'm pretty sure that even if you optimize down to 1 segment, that it
> will still retain the earliest Lucene version that touched any of the
> original segments.
>
> An index that has EVER been touched by a 6.x version will only work up
> to 7.x -- 8.x will refuse to open it.  This is how it's designed.
>
> Thanks,
> Shawn
>
>

Reply via email to