HomeGuides
Submit Documentation FeedbackJoin Developer CommunityLog In

Controlling automatic indexing

This topic describes how to temporarily stop the automatic indexing process using the Optimizely Search & Navigation integration.

Disabling the indexing procedure is useful when extensive content changes are done, such as during imports.

How it works

When content is changed (for example, published, moved to trash, and so on), by default, Optimizely CMS sends a request to 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 a large number of requests and jam the automatic indexing. In this case, you should disable automatic indexing until the editing is done, then reindex the website.

Disabling automatic indexing

Prerequisites<o:p></o:p>

  • Optimizely Search & Navigation is installed with following packages:
    • Find
    • Find.CMS
  • Access to and authorization to edit the website’s web.config file.

To disable the automatic indexing process, follow these steps.

  1. Use FindCmsOptions and set DisableEventedIndexing to true using appsettings.json or ConfigureServices method. 
// sample appsettings.json
        "EPiServer": {
          "Find": {
            "Cms": {
              "DisableEventedIndexing": true
            }
          }
        }

Re-enabling automatic indexing

To re-enable automatic indexing, set DisableEventedIndexing to false.


Did this page help you?