Skip to content

Commit

Permalink
further fix Shazwazza#164
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza committed Jul 14, 2020
1 parent 9d90c8f commit 14d346f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Examine/LuceneEngine/Providers/LuceneIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 14d346f

Please sign in to comment.