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
; From: Sven Teichmann [mailto:s.teichm...@s4ip.de] > Sent: Tuesday, June 16, 2015 10:34 AM > To: java-user@lucene.apache.org > Subject: IndexFormatTooOldException while upgrading Lucene 4.10 index to > 5.2 > > Today I tried to upgrade a Lucene 4.10 index to 5.2 using the IndexUpg

IndexFormatTooOldException while upgrading Lucene 4.10 index to 5.2

2015-06-16 Thread Sven Teichmann
Today I tried to upgrade a Lucene 4.10 index to 5.2 using the IndexUpgrader. This throws the following exception: Exception in thread "Lucene Merge Thread #0" org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (re