Tuesday, May 31, 2016

Sitecore error when rebuilding search indexes

In a scaled Sitecore environment, I was getting a combination of the following errors in conjunction with search (Lucene based) not working as expected:
Exception: System.InvalidOperationException

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

ERROR One or more exceptions occurred while processing the subscribers to the 'indexing:end:remote' event.
This was because one of the Sitecore indexes which relies on the master was not being removed by the switch master to web configuration patch file. The following index items need to be deleted on CD servers:
<contentSearch>
  <configuration>
 <indexes>
   <index id="sitecore_master_index">
  <patch:delete />
   </index>
   <index id="sitecore_marketing_asset_index_master">
  <patch:delete/>
   </index>
   <index id="sitecore_testing_index">
  <patch:delete/>
   </index>
   <index id="sitecore_suggested_test_index">
  <patch:delete/>
   </index>
   <index id="sitecore_fxm_master_index">
  <patch:delete />
   </index>
   <index id="social_messages_master">
  <patch:delete/>
   </index>
   <index id="sitecore_list_index">
  <patch:delete/>
   </index>
 </indexes>
  </configuration>
  <indexConfigurations>
 <indexUpdateStrategies>
   <syncMaster>
  <patch:delete />
   </syncMaster>
   <intervalAsyncMaster>
  <patch:delete />
   </intervalAsyncMaster>
 </indexUpdateStrategies>
  </indexConfigurations>
</contentSearch>
In particular, my config file was not patching sitecore_list_index out. After this was removed, all was good again.

No comments:

Post a Comment