Kentico: Creating the Indexing Scheduled task

In this article you’ll find:

Goal

The goal of this article is to show you how to create the scheduled task from the Kentico backend application.

Prerequisites

Created field mappings - Kentico: Indexing API Overview

Steps to creating the scheduled task

  1. From the application selector side menu (F2 or button top left) choose Configuration/Scheduled tasks.

  2. Click New task.

  3. Write your desired display name in Task display name, for example “Hawksearch Indexing”.

  4. In Task provider choose Hawksearch.Kentico.Xperience.CMS for the assembly name.

  5. In Task provider choose Hawksearch.Kentico.Xperience.CMS.Tasks.IndexingTask for the class name.

  6. If you’re using the Indexing API indexing, there is one more thing you need to do. In the Task data field, you have to specify a JSON string which contains the Index display name that you would like to index with this task. It needs to match the display name defined in Kentico: Manage indexes . For example:

    { "IndexDisplayName" : "Main" }
  7. Choose your desired runtime frequency parameters, for example once per day.

  8. Click save.