---
title: "Enable indexing for PII sensitive fields"
slug: "enable-indexing-for-pii-sensitive-fields"
abstract: "How to enable indexing for fields containing personally identifiable information."
---
# Enable indexing for PII sensitive fields

By default, xConnect does not index personally identifiable information (PII) sensitive fields for privacy reasons. However, there are situations, such as if you have to synchronize information in PII fields with other systems, where you must switch on indexing for PII fields.

> [!note]
> Before enabling indexing on PII sensitive fields, we encourage you to review the security and data protection features of your search provider.

To enable indexing:

1. In the `wwwroot\<sitecoreInstanceName>_xconnect\App_Data\Config\Sitecore\SearchIndexer\` folder, open the `sc.Xdb.Collection.IndexerSettings.xml` file.
2. Locate the `Sitecore\XConnect\SearchIndexer\Services\IndexerSettings\Options\IndexPIISensitiveData` node, and set it to *true*:

    ```xml
    <IndexerSettings>
        <Type>Sitecore.Xdb.Collection.Indexing.IndexerSettings, Sitecore.Xdb.Collection</Type>
        <LifeTime>Singleton</LifeTime>
        <Options>
            <!-- Indexer will split change set on chunks to improve memory consumption. Setting this option to 0, a negative value or removing the element completely, results in no splitting.-->
            <SplitRecordsThreshold>25000</SplitRecordsThreshold>
            <IndexPIISensitiveData>true</IndexPIISensitiveData>
            <IndexAnonymousContactData>false</IndexAnonymousContactData>
        </Options>
    </IndexerSettings>
    ```

3. In the `wwwroot\<sitecoreInstanceName>_xconnect\App_Data\jobs\continuous\IndexWorker\App_data\config\sitecore\SearchIndexer\` folder, open the `sc.Xdb.Collection.IndexerSettings.xml` file.
4. Locate the `Sitecore\XConnect\SearchIndexer\Services\IndexerSettings\Options\IndexPIISensitiveData` node, and set it to *true*.