Yes, there is no support for upgrading a pre-8.x index to 9 or later. At some point it was decided that supporting that would lead to grief for users and/or hamper development of Lucene, so now you can only upgrade one major version. If you need to do so, the best supported option is to write a program that reads your data from one index (old version) and writes it to a new one. There has been discussion off and on about providing a "best effort" upgrade path that might lose some data or fidelity or something, but this is just being kicked around - as far as I can tell nobody has started working on it.
On Mon, Aug 5, 2024 at 3:04 PM Jayamal Jayamaha <jayamaljayama...@gmail.com> wrote: > > Hello > > I am currently working on a project that is using apache lucene 4.1.0 > version. Now I need to upgrade that version to 9.11.1. So I configure the > imports and configure the codebase according to the new lucene version. Now > I need to upgrade existing indexes which have been created using lucene > version 4.1.0 to version 9.11.1. For that I tried following methods > > > 1. Upgrade indexes to version 5.5.5 using index upgrader > 2. Upgrade indexes to version 6.6.2 form the previously upgraded indexes > using index upgrader > 3. Upgrade indexes to version 7.2.1 form the previously upgraded indexes > using index upgrader > > After than when I try to upgrade the indexes to version 8.1.0 from > previously upgraded version which is version 7.2.1, I am getting an error > saying org.apache.lucene.index.IndexFormatTooNewException: Format version > is not supported > > After I did some research I found in several stackoverflow threads and > other articles that index upgrading has been disabled after the version > 7.2.1. but I wasn't able to find that kind of statement in official lucene > docs. > > What I just wanted to know from you are as follows > > 1. has index upgrading been disabled actually after version 7.2.1? and > can't we use that method to upgrade indexes after version 7.2.1? > 2. If yes is there any other methods available to upgrade existing > indexes without reindexing all the indexes again > > If you can give me some knowledge on above, it would be much appreciated > > Best regards > Jayamal Jayamaha --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org