If a search index is being rebuilt, installing a package using the Installation Wizard might interrupt the rebuild operation. During package installation, indexing gets stopped instead of being paused. As a result, a new index rebuild is required to fix the inconsistency between the content and the indexed data.
The issue occurs despite the following message in the Crawling log:
[TIMESTAMP value] WARN Resuming indexing after package has been installed. [TIMESTAMP value] WARN [Index=your_index_name] Crawling Resumed
To prevent the issue, consider one of the following options:
<?xml version="1.0" encoding="utf-8" ?> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> <sitecore role:require="Standalone or ContentManagement or ContentDelivery or XMCloud"> <events> <event name="packageinstall:starting"> <handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackageInstallStartingHandler"> <patch:delete /> </handler> </event> <event name="packageinstall:starting:remote"> <handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackageInstallStartingRemoteHandler"> <patch:delete /> </handler> </event> <event name="packageinstall:poststep:starting"> <handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackagePostStepInstallStartingHandler"> <patch:delete /> </handler> </event> <event name="packageinstall:poststep:starting:remote"> <handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackagePostStepInstallStartingRemoteHandler"> <patch:delete /> </handler> </event> </events> </sitecore> </configuration>
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/syncMaster" />with:
<strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/intervalAsyncMaster" />