Coveo for Sitecore 8, Share Customizations of the Index located in the file Coveo.SearchProvider.config
Hi everyone, I installed Coveo for Sitecore in my local machine and is working correctly. After checking some forums, If I want to use contains operations in my queries I have to change how my fields are indexed in the file Coveo.SearchProvider.config and make it facetable like:
<fieldType fieldName="First Name" isFacet="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
Notice that I am not changing all the schema, just adding some new fields, etc.
Anyway, suppose that I am working with another two guys, and we need to sync all the customization that we are doing in the Coveo index in the file Coveo.SearchProvider.config. I think that is not a good idea to syn all the file Coveo.SearchProvider.config because some developers could use different ports/rabbit user credentials in their environment, etc. The ideal solution should be to shared only the customizations that each developer are doing with respect of the index.
Is there a way to have a configuration file in Sitecore that describes the index only? I meant to have the index configuration section outside the file Coveo.SearchProvider.config or have another file that just extend the index configuration section of the file Coveo.SearchProvider.config that contains the customizations?
Or what is the best practice for that?
Thanks a lot
In my opinion, the most effective solution is to use include files to achieve what you want. In other words, all the common stuff like computed fields and index configuration goes in the
Coveo.SearchProvider.config file. On the other hand, the settings that are specific to each developer (sitecore and queue credentials) are moved into a separate config file that will be patched over the other configuration files.
Regarding the passwords… The configuration panels will encrypt them in the
Coveo.SearchProvider.config file. You could then copy the settings in your developer-specific config file.
This blog post is a great introduction to the include files that Sitecore provides. http://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2011/05/all-about-web-config-include-files-with-the-sitecore-aspnet-cms.aspx