Opening lucene 2.9-dev indexes with Luke Lucene Index Toolbox

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!

Related posts

You can leave a response, or trackback from your own site.

2 Responses to “Opening lucene 2.9-dev indexes with Luke Lucene Index Toolbox”

  1. Rui Carneiro says:

    Could you put here the source of your changes (tar, zip or something)? I really need Luke working in 2.9-dev :)

  2. Marc Sturlese says:

    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.

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!