Luke for Lucene 2.4
August 21, 2008 | In: Programming, Projects
On the Vufind project, I’ve been migrating the Solrmarc codebase to use Solr 1.3. It’s got a lot of nifty changes (the multi-core and DataImportHandler are really nice additions), including moving to Lucene 2.4 for the actual indexing.
On the down side, this means that Luke doesn’t have the correct analyzers or format interpretors (you get an incorrect format excpetion).
The fix is pretty quick. Just download the source tarball/zip for Luke (at the bottom of the page) and extract them somewhere. Then, grab a build of the Lucene 2.4 core, analyzers, and snowball analyzer (I grabbed mine from the Solr nightly build).
Just throw the jars into Luke’s lib folder (e.g. ~/luke-src-0.8-dev/lib) and then rebuild with Ant (ant). This will build the jars in the dist folder. You should be able to check out your index to make sure everything is good in the index.
If you’re lazy and just want the one I created, here you go: luke-08-dev
1 Response to Luke for Lucene 2.4
Daniel
October 29th, 2008 at 9:25 am
Your jar doesn’t work. I got the following error: Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/lucene/document/Document
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.document.Document.
So I built it myself and it turns out that the lukeall and lukemin jars works but not the luke jar. It’s the same with the one you download from the official luke homepage so there’s probably an error in the build script or something. Maybe you should publish lukeall or lukemin instead?