Umbraco Lucene.Net.Index.MergePolicy.MergeException是什么导致这个?

时间:2012-11-30 14:17:11

标签: umbraco lucene.net lucene

我正在使用Umbraco,出于某种原因,我得到了Visual Studio JIT Debugger弹出窗口,询问我是否要使用w3wp.exe进行调试和异常,我附加了它并发现以下异常,我可以'找不到任何原因,因为我没有添加任何新内容。

Lucene.Net.Index.MergePolicy.MergeException was unhandled
  Message=Exception of type 'Lucene.Net.Index.MergePolicy+MergeException' was thrown.
  Source=Lucene.Net
  StackTrace:
       at Lucene.Net.Index.ConcurrentMergeScheduler.HandleMergeException(Exception exc)
       at Lucene.Net.Index.ConcurrentMergeScheduler.MergeThread.Run()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: Lucene.Net.Index.CorruptIndexException
       Message=doc counts differ for segment _3qw: fieldsReader shows 1025 but segmentInfo shows 1
       Source=Lucene.Net
       StackTrace:
            at Lucene.Net.Index.IndexWriter.HandleMergeException(Exception t, OneMerge merge)
            at Lucene.Net.Index.IndexWriter.Merge(OneMerge merge)
            at Lucene.Net.Index.ConcurrentMergeScheduler.DoMerge(OneMerge merge)
            at Lucene.Net.Index.ConcurrentMergeScheduler.MergeThread.Run()
       InnerException: 

有没有人知道造成这种情况的原因或如何解决?

由于

1 个答案:

答案 0 :(得分:1)

我从这个链接找到答案:

http://our.umbraco.org/forum/ourumb-dev-forum/bugs/16066-Missing-LuceneNet-assembly

on Dunfee在6个月前发布了此回复 刚刚从一个地方迁移到另一个地方。我删除了App_Data / TEMP / ExamineIndexes的内容,大约一分钟左右观看浏览器微调器(当重建Lucene缓存时),该网站出现了。