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: