Iβm working on my first proper Sitecore 9 project at the moment, and got bitten by an annoying bit of confusion while doing some configuration work. If youβre tweaking how xConnect works take note, and hopefully you can avoid making the same mistake I didβ¦
xConnect introduces the idea that some fields in the analytics model are βprivateβ by default and out-of-the-box theyβre not indexed by Solr. Hence if you want to be able to search for a contact by name or email you need to change the configuration so these fields are added to the index. (Of course that means you now have an extra GDPR-related headache if the user wants to be forgotten, but thatβs a topic for another day)
This is a scenario that xConnect anticipated, and thereβs a helpful documentation page to explain how to do it. All you have to do is open a config file, edit a line, and rebuild your index. Sounds simple, right?
But thereβs a trap for the unwary here, which I fell into head firstβ¦ The docs mention two paths to the config file you need to change:
The phrasing of the docs is important, and I missed the significance when I read it originally. Where it says βc:\path\to\indexer\App_data\...
β that does not actually mean your installβs equivalent of the βconfigβ folder under βc:\inetpub\wwwroot\yoursite.xConnect\App_data\...
β. That folder exists, and my mind whent into autopilot when I saw it, because the config file in question is there too:
I spent some time editing this one, and getting increasingly confused about why my changes were having no effect, until the ever-helpful Martina Welander put on her psychic debugging hat and pointed out that itβs actually the second location described for this file thatβs the important one.
While the exact paths may vary in your install, you need to change the one thatβs under the β App_Data\jobs\continuous
β folder in your xConnect website folder.
Once you do that itβll all workβ¦
Top comments (0)