Handling the Click URI when there are multiple Sitecore sites and multiple indexes
I'm having some trouble with the Click URI on my search indexes. I have two search indexes for two different Sitecore sites. It looks like I can only specify one SiteName in my config file. So for the site that I specify in SiteName, the Click URI is written correctly. For the other site, the Click URI is written using the full path (sitecore/content/etc.). Is it possible to specify multiple SiteNames? Or is there some other way to handle this so my Click URI for my second site is written correctly?
Coveo for Sitecore recently added improved support for multi-sites configuration in the March 2015 release (build 974). If you are using a previous release, I highly suggest you to upgrade to the latest release.
We wrote an article to explain how the click uri is computed in a multi-site configuration (see Understanding How The ClickableUri Value Is Computed).
We now use the
<SiteName> value as a fallback only if we fail to detect the item's site.
I hope this helps.