Changing the Name of Sources Created in the Coveo Index
The first time you rebuild your indexes in Sitecore, Coveo for Sitecore creates a corresponding source in the Coveo Platform for each index. These sources are named after a combination of your Sitecore index, host, and instance names. For example, if you have a Sitecore instance named
SitecoreInstance running on host
WKS-000236, when you build the master index for the first time, Coveo for Sitecore creates a source named
Coveo_master_index - WKS-000236-SitecoreInstance in the Coveo Platform.
Typically, you may want to change the names of your sources to make them shorter and easier to remember whenever you need them to manually perform a query.
Instead of setting individual source name, you can set a name for the entire farm. See Assigning a Farm Name to Coveo for Sitecore Resources.
Changing the Source Name
The current procedure shows you how to modify the name of the source corresponding to the Sitecore master index.
Coveo.SearchProvider.Custom.configfile using a text editor.
Create the element for the master index configuration. It should look like this:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <contentSearch> <configuration> <indexes> <index id="Coveo_master_index"> </index> </indexes> </configuration> </contentSearch> </sitecore> </configuration>
indexnode, add an element named
sourceNamethat encloses the desired source name in Coveo. For example, you could name your source
Test. Your index configuration should now look like this:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <contentSearch> <configuration> <indexes> <index id="Coveo_master_index"> <sourceName>Test</sourceName> </index> </indexes> </configuration> </contentSearch> </sitecore> </configuration>
sourceNameelement is case-sensitive. Make sure that the value you enter exactly matches the casing of the corresponding source in the Coveo Platform. Typically, a source name should look like this:
Coveo_web_index - WKS-000236-Sitecore72u2.
Save the file and re-index your items (see Coveo for Sitecore Indexing Guide).
You can validate that the new source has been created in your CES Administration Tool:
You can validate that the new source has been created in the Coveo Cloud Administration Console:
The first re-indexing may take longer, as a new source needs to be created. The old sources aren’t deleted.