diff --git a/src/Examine/LuceneEngine/Providers/LuceneIndex.cs b/src/Examine/LuceneEngine/Providers/LuceneIndex.cs index b8b5965e1..25691c8cd 100644 --- a/src/Examine/LuceneEngine/Providers/LuceneIndex.cs +++ b/src/Examine/LuceneEngine/Providers/LuceneIndex.cs @@ -407,6 +407,12 @@ private void CreateNewIndex(Directory dir) } //create the writer (this will overwrite old index files) writer = new IndexWriter(dir, FieldAnalyzer, true, IndexWriter.MaxFieldLength.UNLIMITED); + + // clear out current scheduler and set the error logging one + using (writer.MergeScheduler) { } + writer.SetMergeScheduler(new ErrorLoggingConcurrentMergeScheduler(Name, + (s, e) => OnIndexingError(new IndexingErrorEventArgs(this, s, "-1", e)))); + } catch (Exception ex) {