Upgrading from April 2016 to June 2016
Upgrading from April 2016 to June 2016
For the best Coveo for Sitecore experience, always follow the Leading Practices When Upgrading Coveo for Sitecore.
This section describes how to upgrade Coveo for Sitecore 4.0 from the April 2016 release to the June 2016 release.
Step 1: Upgrade Coveo Services
-
Upgrade Coveo Enterprise Search (CES) to the June 2016 release. For more details, see Upgrading CES.
-
Upgrade Coveo Search API to the May 2016 release. Follow the normal steps of the installation wizard.
Step 2: Upgrade Coveo for Sitecore
Ensure that the Microsoft MVC security update MS14-059 is installed on every Sitecore host in your environment.
If you’re using the Coveo Admin Service in secure mode, read this notice before installing the package.
In the Coveo.SearchProvider.config
file, make sure that the AdminServiceUri
value uses the same host name as the one specified in the certificate. If you’re using a different host name, such as localhost
, you might get the error below when installing the package.
The remote certificate is invalid according to the validation procedure.
...
[WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.]
...
[SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority 'localhost'.]
-
Log into the Sitecore Desktop.
-
Access the Installation Wizard (Sitecore Start Menu > Development Tools > Installation Wizard).
-
Install the Coveo for Sitecore .zip package.
-
When prompted to overwrite files, click Yes to all.
-
When prompted to overwrite items, select Overwrite, then click Apply to all.
You might be prompted twice with this question. Select the Overwrite option and click Apply to all both times.
-
Once the installation is completed, make sure that you restart both the Sitecore client and server.
Step 3: Manually Update the Coveo Search Provider Configuration File
Merging Your Modifications into the Configuration Files
Since upgrading Coveo for Sitecore modifies the Coveo Search Provider configuration files (Coveo.SearchProvider.config.example
and Coveo.SearchProvider.Custom.config.example
) with the latest fixes and enhancements, you need to manually merge these modifications into your current configuration files (Coveo.SearchProvider.config
and Coveo.SearchProvider.Custom.config
). This method allows you to keep your own customization intact, while still benefiting from the latest enhancements brought in the product. You can use a merge tool such as WinMerge to do that.
Step 1: Upgrade Coveo for Sitecore
Ensure that the Microsoft MVC security update MS14-059 is installed on every Sitecore host in your environment.
-
Log into the Sitecore Desktop.
-
Access the Installation Wizard (Sitecore Start Menu > Development Tools > Installation Wizard).
-
Install the Coveo for Sitecore .zip package.
-
When prompted to overwrite files, click Yes to all.
-
When prompted to overwrite items, select Overwrite, then click Apply to all.
You might be prompted twice with this question. Select the Overwrite option and click Apply to all both times.
-
Once the installation is completed, make sure that you restart both the Sitecore client and server.
Step 2: Manually Update the Coveo Search Provider Configuration File
Merging Your Modifications into the Configuration Files
Since upgrading Coveo for Sitecore modifies the Coveo Search Provider configuration files (Coveo.SearchProvider.config.example
and Coveo.SearchProvider.Custom.config.example
) with the latest fixes and enhancements, you need to manually merge these modifications into your current configuration files (Coveo.SearchProvider.config
and Coveo.SearchProvider.Custom.config
). This method allows you to keep your own customization intact, while still benefiting from the latest enhancements brought in the product. You can use a merge tool such as WinMerge to do that.
Manually Modify the Configuration Files
The following modifications explain in details what has changed between the April 2016 and June 2016 releases in the .example
files.
Coveo.SearchProvider.config
-
In the
Coveo.SearchProvider.config
, add the following pipelines under thepipeline
node.<getContentEditorWarnings> <!-- The TopResultConfigurationWarningProcessor validates that a Top Result item is correctly configured --> <processor type="Coveo.SearchProvider.TopResults.TopResultConfigurationWarningProcessor, Coveo.SearchProviderBase" /> </getContentEditorWarnings> <coveoResolveTextWithTokens> <processor type="Coveo.UI.PipelineProcessors.ResolveTextWithTokens.MasterVariablesTokensProcessor, Coveo.UIBase" /> <processor type="Coveo.UI.PipelineProcessors.ResolveTextWithTokens.GuidTokenProcessor, Coveo.UIBase" /> </coveoResolveTextWithTokens>
-
Remove the element
configuration/sitecore/coveo/defaultIndexConfiguration/queryConfiguration/maximumAge
. It will instead use the default recommended value, but can be overridden in specific index configurations. -
Also remove the full agent
Coveo.CloudPlatformClient.Agents.CleanUpAfterRebuildAgent
node, in theconfiguration/sitecore/scheduling
node. The method has changed in the June 2016 version, and it’s no longer needed. -
Ensure that there’s only one
requirementsInvalidateDelay
element in the file, as it was present twice in the Coveo for Sitecore 8.1 package. -
Finally, and only in Sitecore 8.1, the
enableAnalytics
parameter in the Sitecore sites definition was renamed toenableTracking
. The renaming must be applied to the Coveo sites definitions. The following code snippet shows the renamed parameters of thesite
nodes in theCoveo.SearchProvider.config
file.<!-- The site coveorest needs to be inserted as the first element, or before any other sites that have the coveorest site as a child (for example, sites defined with virtualpath="/"). --> <site patch:before="*[1]" name="coveorest" virtualFolder="/coveo/rest" physicalFolder="/coveo/rest" enableTracking="false" database="web" domain="extranet" /> <!-- The site coveoanalytics needs to be inserted before coveorest, because it requires analytics to be enabled. --> <site patch:before="*[1]" name="coveoanalytics" virtualFolder="/coveo/rest/v6/analytics" enableTracking="true" database="web" domain="extranet" />
SwitchMasterToWeb.Coveo.config
-
In the
SwitchMasterToWeb.Coveo.config
, change the agent configuration for theCoveo.SearchProvider.Agents.SynchronizeTopResults
to the following.<agent name="CoveoSynchronizeTopResults"> <patch:delete /> </agent>