---
title: "Enable indexing of anonymous contacts in the xDB index"
slug: "enable-indexing-of-anonymous-contacts-in-the-xdb-index"
abstract: "How to enable the xConnect Search Indexer to index anonymous contacts."
---
# Enable indexing of anonymous contacts in the xDB index

Indexing of anonymous contacts by the xConnect Search Indexer is disabled by default. To enable it:

1. Navigate to the `<xConnect role root>\App_Data\jobs\continuous\IndexWorker\App_Data\config\sitecore\SearchIndexer\` folder.
2. Open the `sc.Xdb.Collection.IndexerSettings.xml` file.
3. Set the `IndexAnonymousContactData` setting to `true`.

    ```text
    <IndexAnonymousContactData>true</IndexAnonymousContactData>
    ```

4. Rebuild the xDB search index.

> [!warning]
> Enabling this setting typically causes a significant increase in the amount of data to be indexed. Make sure that both Solr / Azure Cognitive Search and the xConnect Search Indexer are sized appropriately.

> [!warning]
> The xConnect Collection Search service role has an identical `sc.Xdb.Collection.IndexerSettings.xml` file under `<xConnect role root>\App_Data\Config\Sitecore\SearchIndexer\`. The `IndexAnonymousContactData` setting in this file is not used. Do not edit it.