Sitecore Experience Platform

Enable indexing of anonymous contacts

This topic demonstrates how to enable indexing of anonymous contacts. Indexing of anonymous contacts is disabled by default.

  1. Open the xConnect Search Indexer's sc.Xdb.Collection.IndexerSettings.xml configuration file. 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.

    Warning

    You must edit the xConnect Search Indexer's copy of the sc.Xdb.Collection.IndexerSettings.xml configuration file. The xConnect Collection Search service role has an identical configuration file under C:\path\to\xconnect\root\App_data\Config\Sitecore\SearchIndexer\sc.Xdb.Collection.IndexerSettings.xml. The IndexAnonymousContactData setting in this file is not used.

  2. Set IndexAnonymousContactData to true as shown:

    <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>false</IndexPIISensitiveData>
                <IndexAnonymousContactData>true</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 the xDB search index.