---
title: Enabling search indexing
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

To enable Smart search indexing for all websites in the system:

1. Open the **Settings** application.
2. Select the **System -> Search** category.
3. Check **Enable smart search indexing**.
4. Click **Save**.

> **Note:** **Note**: Your application must have the **write permission** for the **\~/App\_Data** folder on the server's file system. This folder stores the search index files, so the system cannot create and update indexes without the required permissions.
>
> See [Disk permission problems](https://docs.kentico.com/k9/installation/troubleshooting-installation-issues/disk-permission-problems.md) to learn how to grant the write permission for the folder.

## Scheduling the search indexing process

By default, the smart search creates and executes indexing tasks immediately whenever content covered by a [search index](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website/creating-search-indexes.md) is created, modified or deleted.

You can disable automatic running of indexing tasks upon creation by adding the **CMSProcessSearchTasksByScheduler** key to the _/configuration/appSettings_ section of your application's web.config file:

```html

<add key="CMSProcessSearchTasksByScheduler" value="true" />

```

When you set this key to _true_:

- The system only logs the search indexing tasks into the database without running them. You need to process the tasks periodically, for example using the **Execute search tasks**[ scheduled task](https://docs.kentico.com/k9/configuring-kentico/scheduling-tasks.md) (runs every 4 hours by default).
- You cannot manually **Rebuild** indexes unless you also run the process that executes the indexing tasks.

> **Tip:** **Tip**
>
> You can find a list of all indexing tasks that are waiting to be processed in **Smart search -> Tasks**. Here you can:
>
> - Look for information if you encounter problems with new content not being indexed correctly
> - **Delete** () tasks from the indexing queue to stop unnecessary or problematic indexing
>
> See also: [Monitoring search indexing tasks](https://docs.kentico.com/k9/configuring-kentico/setting-up-search-on-your-website/monitoring-search-indexing-tasks.md)

> **Note:** **Executing search tasks via the scheduler on a web farm**
>
> If your environment runs in a web farm, you need to configure the **Execute search tasks** scheduled task to be executed on each of the web farm servers individually. See [Configuring scheduled tasks to be executed on every server of a web farm](https://docs.kentico.com/k9/configuring-kentico/optimizing-website-performance/setting-up-web-farms/configuring-web-farm-servers.md#configuring-scheduled-tasks-to-be-executed-on-every-server-of-a-web-farm).
