Search code examples
configurationsitecoresitecore-mvc

Sitecore Configuration issue


I'm new to Sitecore, (very new) and I'm trying to get an existing project working locally. All so far so good, apart from the error:

Could not find configuration node: contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster

The references to the this in the config files are:

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>

And some patch files that do the following:

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

EDIT Also in SiteCore.ContentSearch.DefaultConfigurations.config

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

Can someone help me identify what I am looking for here to fix this, as it is not completely obvious


Solution

  • The error message is stating that it is trying to find the syncMaster update strategy as referenced in the ContentSearch Configuration file

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

    Your patch config file actively removes the syncMaster update strategy from configuration.

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

    Therefore remove that patch file and the syncMaster will stay in config and therefore the error will be resolved.