---
title: "Enable indexing of PII sensitive data in the xDB index"
slug: "enable-indexing-of-pii-sensitive-data-in-the-xdb-index"
abstract: "How to configure the xConnect Search Indexer to index contact facets marked [PIISensitive]."
---
# Enable indexing of PII sensitive data in the xDB index

By default, the xConnect Search Indexer service does not index personal data, which is represented by contact facets marked `[PIISensitive]`.

> [!important]
> The Experience Profile and List Manager interfaces rely on personal data being available in the xDB index. Customers must make the explicit choice to enable indexing of personal data. Sitecore encourages customers to review the security and data protection features of their chosen search provider (Azure Search or Solr).

To enable indexing of PII sensitive data in the xDB index:

1. Open the xConnect Search Indexer configuration located at `C:\<Path to indexer>\App_data\Config\Sitecore\SearchIndexer\sc.Xdb.Collection.IndexerSettings.xml`.

    > [!tip]
    > In a default on-premise deployment, the full path is `C:\<Path to xConnect>\root\App_data\jobs\continuous\IndexWorker\App_data\Config\Sitecore\SearchIndexer\sc.Xdb.Collection.IndexerSettings.xml`.

2. Set `IndexPIISensitiveData` to `true`, as shown in the following example:

    ```xml
    <Settings>
    <Sitecore>
        <XConnect>
        <!-- SearchIndexer role requires Collection and CollectionSearch role services -->
        <SearchIndexer>
            <Services>
            <IndexerSettings>
                <Type>Sitecore.Xdb.Collection.Indexing.IndexerSettings, Sitecore.Xdb.Collection</Type>
                <LifeTime>Singleton</LifeTime>
                <Options>
                <IndexPIISensitiveData>true</IndexPIISensitiveData>
                <IndexAnonymousContactData>false</IndexAnonymousContactData>
                </Options>
            </IndexerSettings>
            <IIndexer>
                <Type>Sitecore.Xdb.Collection.Indexing.DecoratedIndexer, Sitecore.Xdb.Collection</Type>
                <As>Sitecore.Xdb.Collection.Indexing.IIndexer, Sitecore.Xdb.Collection</As>
                <LifeTime>Singleton</LifeTime>
            </IIndexer>
            <IIndexRebuildFlow>
                <Type>Sitecore.Xdb.Collection.Indexing.IndexRebuildFlow, Sitecore.Xdb.Collection</Type>
                <As>Sitecore.Xdb.Collection.Indexing.IIndexRebuildFlow, Sitecore.Xdb.Collection</As>
                <LifeTime>Singleton</LifeTime>
                <Options>
                <IncomingDataLagOnCompletion>0.`00:00`:05</IncomingDataLagOnCompletion>
                <!--Enable ParallelizationDegree setting to override default value which is (processorCount*4)-->
                <!--<ParallelizationDegree>16</ParallelizationDegree>-->
                <BatchSize>1000</BatchSize>
                </Options>
            </IIndexRebuildFlow>
            </Services>
        </SearchIndexer>
        </XConnect>
    </Sitecore>
    </Settings>
    ```

3. [Rebuild](https://doc.sitecore.com/xp/en/developers/100/sitecore-experience-platform/rebuilding-the-xdb-search-index.html "Rebuilding the xDB search index") the xDB search index.

    > [!important]
    > If you change the value of the `IndexPIISensitiveData` from `true` back to `false`, you must rebuild the index again to remove personal data.