I think you need backward-codecs-9.0.0-SNAPSHOT there. It enables 9.0
to read 8.x indexes.

On Wed, May 26, 2021 at 9:27 AM Michael Wechner
<michael.wech...@wyona.com> wrote:
>
> Hi
>
> I am using Lucene 8.8.2 in production and I am currently doing some
> tests using 9.0.0-SNAPSHOT, whereas I have included
> lucene-backward-codecs, because in the log files it was asking me
> whether I have forgotten to include lucene-backward-codecs.jar
>
>          <dependency>
>              <groupId>org.apache.lucene</groupId>
>              <artifactId>lucene-core</artifactId>
>              <version>9.0.0-SNAPSHOT</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.lucene</groupId>
>              <artifactId>lucene-queryparser</artifactId>
>              <version>9.0.0-SNAPSHOT</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.lucene</groupId>
> <artifactId>lucene-backward-codecs</artifactId>
>              <version>8.8.2</version>
>          </dependency>
>
> But when querying index directories created with Lucene 8.8.2, then I
> receive the following error
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.lucene.codecs.Codec$Holder
>
> I am not sure whether I understand the backwards compatibility page
> correctly
>
> https://cwiki.apache.org/confluence/display/LUCENE/BackwardsCompatibility
>
> but I guess version 9 will not be backwards compatible to version 8? Or
> should I do something different?
>
> Thanks
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to