重建搜索索引时出现Sitecore错误

时间:2015-09-03 13:39:30

标签: search lucene sitecore

我面对一个有趣的问题。当我想重建一个搜索索引时,我收到了以下错误。

之前曾多次使用过,但现在失败了。其他索引如master,web ......工作正常。

我使用Sitecore.NET 7.0(rev.140408),错误是:

Job started: Index_Update_IndexName=BlablaSearchIndex|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OverflowException: Arithmetic operation resulted in an overflow.
at Lucene.Net.Store.IndexInput.ReadString()
at Lucene.Net.Index.SegmentInfo..ctor(Directory dir, Int32 format, IndexInput input)
at Lucene.Net.Index.SegmentInfos.Read(Directory directory, String segmentFileName)
at Lucene.Net.Index.SegmentInfos.AnonymousClassFindSegmentsFile.DoBody(String segmentFileName)
at Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run(IndexCommit commit)
at Lucene.Net.Index.SegmentInfos.Read(Directory directory)
at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, IndexDeletionPolicy deletionPolicy, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit)
at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, MaxFieldLength mfl)
at Sitecore.ContentSearch.LuceneProvider.LuceneIndex.Reset()
at Sitecore.ContentSearch.LuceneProvider.LuceneIndex.PerformRebuild(IndexingOptions indexingOptions)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Jobs.Job.ThreadEntry(Object state)

有人可以给我一些帮助吗?或者只是提示我应该在哪里找到解决方案?

非常感谢。

1 个答案:

答案 0 :(得分:1)

我已经看到Lucene索引多次损坏并在重建期间导致类似问题。您可以尝试删除相关目录(默认情况下,它将在Data / Indexes文件夹中)并再次触发重建。