Yep, that check is present in Lucene 9.x as well. It will refuse to open an
index created in 7.x.

https://github.com/apache/lucene/blob/releases/lucene/9.4.0/lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java#L345

https://github.com/apache/lucene/blob/releases/lucene/9.4.0/lucene/core/src/java/org/apache/lucene/util/Version.java#L262

-Rahul

On Mon, Aug 28, 2023 at 2:31 PM Shawn Heisey <apa...@elyograg.org> wrote:

> On 8/28/23 05:03, Jan Høydahl wrote:
> > Are you sure that 9.x refuse to open an index first created in 7.x? I
> thought that strict policy was only needed in 8.0 due to a particular lossy
> data structure change, and that 9.x is more lenient?
>
> I haven't actually tried it, but I believe N-1 is enforced for all
> versions starting with 8.0, including 9.x and 10.0.0-SNAPSHOT.  That
> would need to be verified by someone who is more familiar with Lucene
> than I am.
>
> Thanks,
> Shawn
>

Reply via email to