lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Cranness" <>
Subject Lucene index reset/cleared after an unexpected powerdown - advice please
Date Tue, 06 Oct 2015 06:01:14 GMT
Hi All,

Re: Lucene index reset/cleared after an unexpected powerdown - advice please

A client site had an unexpected powerdown (and UPS failure), after which the Lucene index
was empty or corrupted and has
lost its documents.
Users continued to work and add new documents, and the index now only contains those new documents.

The index files (after the crash) only add up to about 78KB (for 30 new documents), so it
looks like there is nothing
left of the old index.

Our logging shows the last writer.UpdateDocument 8 minutes before the crash.
Our code Commits the index writer after each document update.
So the index should have been synced to disk

There is evidence against the possibility that a document update was in progress at the time
of the crash, but was not
logged because the log was not flushed.

A bit of a long-shot, but does anybody have any advice on how to debug the truncation/clearing
of the Lucene index?


Index is a Lucene.Net.Store.FSDirectory
_directory = FSDirectory.Open(new DirectoryInfo(luceneDir), new SingleInstanceLockFactory());

There is only one single (static) instance of the IndexWriter
_writer = new IndexWriter(_directory, analyzer, IndexWriter.MaxFieldLength.UNLIMITED);

.NET 4.5


View raw message