Skip to content

Instantly share code, notes, and snippets.

@islaytitans
Created January 2, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save islaytitans/9363459f8a25a7a5e2c0d33e0d155428 to your computer and use it in GitHub Desktop.
Save islaytitans/9363459f8a25a7a5e2c0d33e0d155428 to your computer and use it in GitHub Desktop.
Add extra fields to the Sitecore_analytics_index to store custom xdb data
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<contentSearch>
<configuration>
<indexes>
<index id="sitecore_analytics_index">
<configuration>
<fieldMap>
<fieldNames>
<field fieldName="contact.SampleOrder.Skus" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.String[]" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider" />
<field fieldName="contact.SampleOrder.FavouriteType" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.String" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider" />
</fieldNames>
</fieldMap>
</configuration>
</index>
</indexes>
</configuration>
</contentSearch>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment