I am trying to integrate MongoDB 4.0 with Sitecore 9.1 (to collect analytics data) but not sure what and where to change in the configuration files. I followed the steps mentioned in the installation guide but it's not very clear and specific. Have anyone of you tried such a thing recently? If so please let me know. Will appreciate any help!
If you see this table, 9.1 is compatible with MongoDb 3.6.6, not 4. (https://kb.sitecore.net/articles/633863).
The guide on setting it up is in the installation instructions for 9.1. The basics are:
- Enable the
sc.Xdb.Collection.Data.MongoDb.xml.disabledconfiguration file by removing
sc.Xdb.Collection.Data.Sql.xmlconfiguration file by adding the .disabled file extension.
collectionconnection string to point to the MongoDB instance
You must also update the collection connection string in the indexer job that exists under the following roles:
- XP Single (XP0): xConnect
- XP Scaled (XP1): xConnect Collection & xConnect Collection Search
Rebuild the xDB search indexes in Solr
That would swap the xConnect collections database from the SQL Server provider to the MongoDB provider. note, this is done on the