2016-04-22 48 views
1

我是新來的Sitecore,(非常新),我試圖讓一個現有的項目在本地工作。所有到目前爲止好,除了錯誤:Sitecore配置問題

找不到配置節點:contentSearch/indexConfigurations/indexUpdateStrategies/SYNCMASTER

在配置文件到這一點的引用:

的web.config :

<contentSearch> 
    <configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch"> 
    <indexes hint="list:AddIndex"> 
     <index id="sitecore_dev_index" type="Sitecore.ContentSearch.LuceneProvider.LuceneIndex, Sitecore.ContentSearch.LuceneProvider"> 
     <param desc="name">$(id)</param> 
     <param desc="folder">$(id)</param> 
     <!-- This initializes index property store. Id has to be set to the index id --> 
     <param desc="propertyStore" ref="contentSearch/indexConfigurations/databasePropertyStore" param1="$(id)"/> 
     <configuration ref="contentSearch/indexConfigurations/devLuceneIndexConfiguration"/> 
     <strategies hint="list:AddStrategy"> 
      <!-- NOTE: order of these is controls the execution order --> 
      <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster"/> 
     </strategies> 

還有一些補丁文件執行以下操作:

<indexConfigurations> 
    <indexUpdateStrategies> 
     <syncMaster> 
     <patch:delete /> 
     </syncMaster> 

編輯另外在SiteCore.ContentSearch.DefaultConfigurations.config

  <syncMaster type="Sitecore.ContentSearch.Maintenance.Strategies.SynchronousStrategy, Sitecore.ContentSearch"> 
     <param desc="database">master</param> 
     </syncMaster> 

人可以幫我鑑定一下我在這裏尋找到解決這個問題,因爲它不是完全明顯

+0

錯誤與您通過修補程序刪除的syncMaster更新策略有關。爲什麼要刪除syncMaster更新策略?這是Master索引 –

+0

所必需的,正如前面提到的那樣,我們不能100%確定它正在發生什麼事情,並要求在本地建設它。我認爲這可能是不同的配置文件配置混合到構建中。目前 –

+1

暫時刪除該補丁,看看你是否得到一個新的錯誤,或者如果它工作正常 –

回答

2

該錯誤消息指出這是試圖找到syncMaster更新策略作爲ContentSearch配置文件

引用

您的修補程序配置文件主動從配置中刪除syncMaster更新策略。

<syncMaster> 
    <patch:delete /> 
</syncMaster> 

因此刪除該補丁文件和syncMaster將留在配置,因此,錯誤將得到解決。

2

你非常接近修復它。無法找到syncMaster的原因是因爲它正在被刪除。只是評論或從您的配置文件中刪除此部分

<syncMaster> 
    <patch:delete /> 
</syncMaster> 

只是給你一點背景。

Sitecore針對不同索引的內容索引有多種策略。您可以在這裏閱讀更多關於它們的信息 - http://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2013/04/sitecore-7-index-update-strategies.aspx

Syncmaster僅適用於主數據庫。 CM(內容管理服務器)通常是唯一與主數據庫交談的,所以syncMaster應該只存在於CM上。在CD(內容傳遞服務器)上,Sitecore可伸縮性指南會告訴您刪除與主數據庫的所有連接,因此syncMaster在那裏變得不相關,因此您必須進行修補:刪除它。

讓我知道它是怎麼回事。