Re: IndexFormatTooOldException

2024-12-19 Thread Ian Lea
Thanks Adrien. Looks to be exactly what I need. -- Ian. On Thu, Dec 19, 2024 at 1:27 PM Adrien Grand wrote: > Hi Ian, > > Indeed Lucene has been maintaining read-only support for 8.x indices > lately, see this method which lets you opt in for this: > > https://lucene.apache.org/core/10_0_0/co

Re: IndexFormatTooOldException

2024-12-19 Thread Adrien Grand
Hi Ian, Indeed Lucene has been maintaining read-only support for 8.x indices lately, see this method which lets you opt in for this: https://lucene.apache.org/core/10_0_0/core/org/apache/lucene/index/DirectoryReader.html#open(org.apache.lucene.index.IndexCommit,int,java.util.Comparator) . So if y

RE: IndexFormatTooOldException while upgrading Lucene 4.10 index to 5.2

2015-06-16 Thread Uwe Schindler
ilto:u...@thetaphi.de] > Sent: Tuesday, June 16, 2015 11:35 AM > To: java-user@lucene.apache.org > Subject: RE: IndexFormatTooOldException while upgrading Lucene 4.10 index > to 5.2 > > Hi, > > you need to add the JAR file lucene-backward-codec.jar to the classpath (or > a

Re: IndexFormatTooOldException while upgrading Lucene 4.10 index to 5.2

2015-06-16 Thread Michael McCandless
Indeed DirectDocValuesFormat had a back-compat break between 4.x and 5.x ... this is expected/allowed (it is an experimental format). You should be able to do something like this to more forwards: * In 4.x, open a new IndexWriter, using the default Codec (which is back-compat) * Use addIndex

RE: IndexFormatTooOldException while upgrading Lucene 4.10 index to 5.2

2015-06-16 Thread Uwe Schindler
Hi, you need to add the JAR file lucene-backward-codec.jar to the classpath (or add it via Maven). It contains the codecs to read pre-5.0 versions. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: