Sitecore 配置问题

Sitecore Configuration issue

我是 Sitecore 的新手(非常新),我正在尝试让现有项目在本地运行。到目前为止一切都很好,除了错误:

找不到配置节点:contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster

配置文件中对 this 的引用是:

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>

谁能帮我确定我在这里寻找什么来解决这个问题,因为它不是很明显

错误消息指出它正在尝试查找 ContentSearch 配置文件

中引用的 syncMaster 更新策略

<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster"/>

您的补丁配置文件主动从配置中删除 syncMaster 更新策略。

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

因此删除该补丁文件,syncMaster 将保留在配置中,因此错误将得到解决。

您即将修复它。找不到 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 仅适用于 master 数据库。 CM(内容管理服务器)通常是唯一与主数据库对话的服务器,因此 syncMaster 应该只存在于 CM 上。在 CD(内容交付服务器)上,Sitecore 可扩展性指南告诉您删除与主数据库的所有连接,因此 syncMaster 在那里变得无关紧要,因此您必须 patch:delete 它。

告诉我进展如何。