I have used the org.apache.lucene.index.CheckIndex class in the trunk version of the source which seems to work well.
There was one minor issue with it hanging on to the segment*'s file after the method is called (w/o the fixing option). There is one change I did which clears this up by a adding a finally block to close the IndexInput. /** old version from line 88 **/ try { format = input.readInt(); } catch (Throwable t) { out.println("ERROR: could not read segment file version in directory"); t.printStackTrace(out); return false; } /** updated version **/ try { format = input.readInt(); } catch (Throwable t) { out.println("ERROR: could not read segment file version in directory"); t.printStackTrace(out); return false; } finally { if (input != null) { input.close(); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]