Mailing List Archive

Old codecs may only be used for reading
Hi

I recently upgraded from Lucene 9.8.0 to Lucene 9.9.1 and noticed that Lucene95Codec got moved to

org.apache.lucene.backward_codecs.lucene95.Lucene95Codec

When testing my code I received the following error message:

"Old codecs may only be used for reading"

Do I understand correctly, that Lucene95Codec can not be used for writing anymore?

And that I should use now Lucene99Codec for writing?

Thanks

Michael
Re: Old codecs may only be used for reading [ In reply to ]
Hey Michael. Your understanding is correct.

On Thu, Jan 11, 2024 at 10:46?AM Michael Wechner <michael.wechner@wyona.com>
wrote:

> Hi
>
> I recently upgraded from Lucene 9.8.0 to Lucene 9.9.1 and noticed that
> Lucene95Codec got moved to
>
> org.apache.lucene.backward_codecs.lucene95.Lucene95Codec
>
> When testing my code I received the following error message:
>
> "Old codecs may only be used for reading"
>
> Do I understand correctly, that Lucene95Codec can not be used for writing
> anymore?
>
> And that I should use now Lucene99Codec for writing?
>
> Thanks
>
> Michael
>


--
Adrien
Re: Old codecs may only be used for reading [ In reply to ]
Hi Adrian, thank you very much for confirming quickly!

I switched to Lucene99Codec and all looks good again :-)

Thanks

Michael

Am 11.01.24 um 10:47 schrieb Adrien Grand:
> Hey Michael. Your understanding is correct.
>
> On Thu, Jan 11, 2024 at 10:46?AM Michael Wechner <michael.wechner@wyona.com>
> wrote:
>
>> Hi
>>
>> I recently upgraded from Lucene 9.8.0 to Lucene 9.9.1 and noticed that
>> Lucene95Codec got moved to
>>
>> org.apache.lucene.backward_codecs.lucene95.Lucene95Codec
>>
>> When testing my code I received the following error message:
>>
>> "Old codecs may only be used for reading"
>>
>> Do I understand correctly, that Lucene95Codec can not be used for writing
>> anymore?
>>
>> And that I should use now Lucene99Codec for writing?
>>
>> Thanks
>>
>> Michael
>>
>


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