Any compatiblity issue in the upgrade from Lucene Core 3.2.0 to Core 6.1.0?

2016-08-07 Thread 郑文兴
Dear all, Our project is still running on Lucene Core 3.2.0, which is a little too old. If we wanna upgrade the version from 3.2.0 to 6.1.0, is there any compatibility issue, which requires some special actions? Appreciated for your advice Regards, Wenxing

Re: Any compatiblity issue in the upgrade from Lucene Core 3.2.0 to Core 6.1.0?

2016-08-07 Thread Erick Erickson
Yes. Lucene only guarantees back-compatibility with indexes for one major version. That is, a 4.x release can read a 3.x Lucene index. But a 5.x will not read a 3.x. So you have some options here: 1> re-index all your source in 6.x. This is probably easiest 2> upgrade in stages, check out the

Segment Corruption - ForUtil.readBlock AIOBE

2016-08-07 Thread Ravikumar Govindarajan
For some of the segments we received the following exception during merge as well as search. They look to be corrupt [Lucene 4.6.1 & Sun JDK 1.7.0_55] Is this a known bug? Any help is much appreciated The offending line of code is in ForUtil.readBlock() method... *final int encodedSize = encode