Control automatic indexing
Describes how to temporarily stop the automatic indexing process in Optimizely Commerce Connect using the Optimizely Search & Navigation integration.
Disabling the indexing procedure is useful when extensive content changes are done, such as during imports.
When content is changed (for example, published, moved to trash, and so on), by default, Optimizely Content Management System (CMS) requests Optimizely Search & Navigation to save the change. At this point, an automatic index process indexes the changed item only, not the entire website.
However, if a CMS user is editing an entire website or importing content, this process can create many requests and jam the automatic indexing. In this case, you should disable automatic indexing until the editing is done, then reindex the website.
Disable automatic indexing
Prerequisites
- Search & Navigation is installed with following packages:
FindFind.CMS
- Access to and authorization to edit the website’s
web.configfile.
To disable the automatic indexing process, follow these steps.
- Use
FindCmsOptionsand setDisableEventedIndexingto true usingappsettings.jsonorConfigureServicesmethod.
// sample appsettings.json
"EPiServer": {
"Find": {
"Cms": {
"DisableEventedIndexing": true
}
}
}Re-enable automatic indexing
To re-enable automatic indexing, set DisableEventedIndexing to false.
Updated 11 days ago