Lately I have started using the developers version of Lucene (2.9-dev). When I wanted to open an index using Luke to check some content it just did not work, I got a “lucene invalid index” error. After a while I realized it was totally normal. The cause of the error is that the latest Luke’s release uses lucene 2.4 libraries. If the index was created using the 2.9-dev libs, Luke will think that the index was malformed. We just need to update the libs to make it work.
First of all I downloaded the Luke’s source code . Opened the lib folder and replaced the 2.4 for the ones of the lucene developers release. Once done I compiled the surce with ant and… that’s it, I could check my indexed data using my compiled version Luke!
Could you put here the source of your changes (tar, zip or something)? I really need Luke working in 2.9-dev
I Just grabbed the source from the lucene luke’s home page and recompiled it with lucene 2.9 jars. Here is the recomplied jar.