lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cedric Ho" <>
Subject exception during optimze
Date Fri, 01 Jun 2007 03:02:01 GMT

When I tried to build an index last night, the following exception
occurred during call to IndexWriter.optimze():

        at org.apache.lucene.index.IndexFileDeleter.findDeletableFiles(
        at org.apache.lucene.index.IndexWriter.mergeSegments(
        at org.apache.lucene.index.IndexWriter.flushRamSegments(
        at org.apache.lucene.index.IndexWriter.optimize(

The mergeFactor is set to 500. And the final index file size is about 10Gb.

Also since the writer.close() is not called. There's an write.lock
file in the index directory. After deleting the write.lock file, I
called optimze() again and it complete successfully. Is the indexing
successful then? Will any documents be lost due to the above

I am using lucene-core-2.1.0


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message