HomeDev guideAPI ReferenceGraphQL
Dev guideUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Scheduled index job

Describes the indexing scheduled job in an integration of Optimizely Search & Navigation with Optimizely Content Cloud (CMS).

The EPiServer.Find.Cms assembly ships with a scheduled job plug-in, which lets administrators reindex an entire site from the Optimizely Content Management System (CMS) admin mode. The job, Episerver Find Content Indexing Job, can be started manually or with the job scheduling feature.

📘

Note

You only need to schedule the indexing job for specific circumstances described below. CMS instantly indexes any content changes. If you run the indexing job when it is not necessary, you are unduly adding to the system load.

Use the scheduled job

There are two scenarios for using the scheduled indexing job to index pages:

  • After installing the Optimizely Search & Navigation CMS integration for the first time. Otherwise, CMS indexes existing pages only when manually republished.
  • If automatic indexing fails, or you should reindex pages for another reason.

When started manually, the job runs within the IIS server application pool and is interrupted by IIS when the Idle Timeout passes. By default, the timeout is set to 20 minutes. Indexing a large site may take more than 20 minutes, and it is not advisable to increase the timeout. You should schedule the job, as the CMS scheduled job process is unaffected by the timeout.

Log of indexing activity

After an indexing job, a report prints to the history log displaying execution time and number of pages indexed.

Indexing job: Reindexing completed.
ExecutionTime: 0minutes 18seconds
Number of pages indexed: 180

If an error occurs, the report notifies you where it occurred, gives the error message, and counts two types of errors:

  • Page errors relating to filtering or loading page.
  • Batch errors relating to transmitting and indexing files to Optimizely Search & Navigation.

Example

Indexing job: Reindexing completed.
ExecutionTime: 0minutes 16seconds
Number of pages indexed: 169
Number of page errors: 11
Number of batch errors: 0
An error occured while filtering Page: 113. 
The 'ShouldIndex' function could not be evaluated for Page: 113. 
ShouldIndex-exception. (see log for more information)

To see the stack trace, activate the logging functionality and trace it in your log file.