Enable indexing of PII sensitive data in the xDB index
This topic demonstrates how to enable indexing of contact facets marked [PIISensitive]
. Indexing of personal data is disabled by default.
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).
-
Open
C:\<Path to indexer>\App_data\Config\Sitecore\SearchIndexer\sc.Xdb.Collection.IndexerSettings.xml
.NoteIn 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
. -
Set
IndexPIISensitiveData
totrue
as shown:RequestResponse<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>
-
Rebuild the xDB search index.
NoteIf you change the value of the
IndexPIISensitiveData
fromtrue
back tofalse
, you must rebuild the index to remove personal data.