Tuesday, July 1, 2008 12:38 PM
What problem are you facing?
Its been a few years since I have worked in Lucene.
Based on my experience, bear in mind the following:
When you delete a document from the index, it is never deleted. Its marked for deletion. You need to optimize the index once in a while, to remove unwanted stuff like these, else the search becomes slow, and the chance of index getting corrup is very high.
Also, make sure, you take a backup of index on a periodic basis, so that you can update a backed-up index from the date it got corrupted.
Also, org.apache.lucene.index.CheckIndex.check() is a nice method.
-Phir Bhi Dil He Hindustani-