---
title: "Enable the indexing sub-role"
slug: "enable-the-indexing-sub-role"
abstract: "How to enable the Sitecore Content Manager and Content Delivery indexing sub-role."
---
# Enable the indexing sub-role

| Applies to | Content Management, Content Delivery (geo-scaled scenarios only) |
| --- | --- |

To enable the indexing sub-role, add `Indexing` to the `role:define` key in web.config as shown:

```text
<add key="role:define" value="ContentManagement, Indexing"/>

```

The indexing sub-role is enabled by default in the Content Management WDP in the XP Scaled topology, and in the combined role WDP in the XP Single topology.

> [!important]
> Indexing must be performed by one instance only. If you install additional Content Management instances, you must remove the `Indexing` sub-role from those instances.

## Allowing Content Delivery to perform indexing

In a geo-scaled environment with more than one Content Delivery cluster, you might have a dedicated instance of Solr or Azure Search for each region. In such a case, you should assign the indexing sub-role to a single Content Delivery instance in the region that is not being updated by the Content Management role.