lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anna Hunecke <>
Subject IOExceptions when optimising the index
Date Thu, 29 Apr 2010 10:50:29 GMT

we are using Lucene 2.4.1 in our app. It works great so far, but now a customer ran into a
strange problem.
During the day, the search index is updated regularly with the newest changes in the application.
At night, when nothing much is happening in the application, the index is optimised.
The updating during the day works fine, but during the optimizing, all kinds of strange exceptions
occur: Access is denied
at Method)
at Source)
at org.apache.lucene.index.IndexWriter.init(
at org.apache.lucene.index.IndexWriter.<init>(

or failed to delete searchindex\write.lock
at org.apache.lucene.index.IndexWriter.closeInternal(
at org.apache.lucene.index.IndexWriter.close(
at org.apache.lucene.index.IndexWriter.close(

or background merge hit exception: _dhi:c1195 _dlt:c33 into _dlu [optimize]
Exception in thread "Lucene Merge Thread #0" 	at org.apache.lucene.index.IndexWriter.optimize(
at org.apache.lucene.index.IndexWriter.optimize(
at org.apache.lucene.index.IndexWriter.optimize(
Caused by: searchindex\_dlu.fnm (The system cannot find the
file specified)
at Method)
at<init>(Unknown Source)
at org.apache.lucene.index.CompoundFileWriter.copyFile(
at org.apache.lucene.index.CompoundFileWriter.close(
at org.apache.lucene.index.SegmentMerger.createCompoundFile(
at org.apache.lucene.index.IndexWriter.mergeMiddle(
at org.apache.lucene.index.IndexWriter.merge(
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(
at org.apache.lucene.index.ConcurrentMergeScheduler$

The indexes look fine when I open them with Luke, and since the normal updating works, I don't
think it has something to do with write-rights of the disks. 
So, what could be the cause of this?
And: How necessary is it really to run an optimisation every night? A lot of changes take
place when the program runs, so the search index is changed quite frequently. Maybe it is
enough to let the automatic merging take care of things?


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

View raw message