lucene-java-user mailing list archives

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

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

java.lang.NullPointerException
        at org.apache.lucene.index.IndexFileDeleter.findDeletableFiles(IndexFileDeleter.java:88)
        at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:1570)
        at org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:1351)
        at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:891)
        ......

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
exception?

I am using lucene-core-2.1.0

Thanks,
Cedric

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message