Rebuilds failing at the document validation phase
Rebuilds failing at the document validation phase
Symptoms
When performing a rebuild, the process fails at the DocumentsValidation
phase and items that were deleted from Sitecore aren’t deleted from the index.
Cause
The DocumentsValidation
phase comprises two main steps:
-
Coveo for Sitecore checks whether the crawled items are searchable. This check involves HTTP requests to the Coveo Search API via the REST endpoint proxy. When the host server’s
coveo/rest
endpoint isn’t working or doesn’t respond, the rebuild fails and terminates.NoteThese REST endpoint proxy issues are sometimes firewall-related, where the CM server can’t reach the CD hosting the
coveo/rest
endpoint. They also often occur in Azure-hosted Sitecore environments. -
Coveo for Sitecore deletes old items from the index, meaning items that have been deleted from Sitecore but remain in the index. When the rebuild fails at the searchability validation step, this deletion step isn’t performed.
Resolution
To resolve this issue, ensure that the coveo/rest
endpoint on the host is accessible from the indexing CM server and that it’s working correctly.
Workaround
You can disable the searchability validation step in the indexing process so that the deletion of old Sitecore items can proceed and the rebuild can complete successfully.
|
Note
The searchability validation step is primarily a legacy feature.
Disabling it while introducing a |
To disable the searchability validation step
-
Open the
Coveo.SearchProvider.Custom.config
file located in<SITECORE_INSTANCE_ROOT>\App_Config\Include\Coveo
in a text editor. -
Add the following settings as children of the
configuration/sitecore/settings
element:<setting name="Coveo.Indexing.CommittedDocumentsPollingEnabled" value="false" /> <setting name="Coveo.Indexing.DeletedDocumentsPollingEnabled" value="false" /> <setting name="Coveo.Indexing.DeleteOldDocumentsDelay" value="00:05:00" />
-
Save your changes.