Gravatar for erkan.yildiz@avanade.com

Question by erkany, Aug 20, 2015 2:48 PM

How do we force index update - how to force update clickUri

Hi,

Even though I changed the Sitecore site definition item and changed the hostname, I still see the old hostname in search results even after doing full republish, full reindexing.

Do you think the item is cached? Any way to clear cache or force Coveo update it's index for this item?

I tried full rebuild index as well as "reindex tree" for the specific item

Thanks

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Aug 20, 2015 3:41 PM

Can you answer those questions please?:

  • Which Coveo for Sitecore version are you using?
  • What was the previous "hostname" property value?
  • What is the site definition item? (Copy/paste the entire item please)
  • What is the value of the <ServerUrl> element in your Coveo.SearchProvider.config file?

Thanks

Gravatar for erkan.yildiz@avanade.com

Comment by erkany, Aug 20, 2015 4:17 PM

Sitecore.NET 7.5 (rev. 141003)

- Installed Coveo for Sitecore 75 3.0 (863)

- previous hostname was : "prodpreview.[xyz].com"

- is empty

- site definition item will be on next comment

Gravatar for erkan.yildiz@avanade.com

Comment by erkany, Aug 20, 2015 4:17 PM

Site node start:

<site patch:before="*[@name='website']" name="xyz-consumer" hostName="www.xyz.com" AVN.SiteConfiguration="{D85405FA-7A76-4F43-B49A-6DC9A7F8B14C}" EMS.ConditionConfiguration="{3479D083-34FA-422E-98B0-553CA0737AC3}" rootPath="/sitecore/content" startItem="/Conditions/xyz/Brands/xyz/xyz/home"
Gravatar for erkan.yildiz@avanade.com

Comment by erkany, Aug 20, 2015 4:17 PM

Site node end:

virtualFolder="/" physicalFolder="/" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" />
1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Aug 21, 2015 1:07 PM

Hi,

Thank you for the answers to my questions.

You are using an old release of Coveo for Sitecore (December 2014). At this time, when indexing an item, we were just getting the item URL from the Sitecore LinkManager without passing a SiteContext.

In newer releases of Coveo for Sitecore, things changed a lot to support multi-sites in Sitecore. We are now finding the first site where the item is included and use this SiteContext when calling the Sitecore LinkManager. With this change, indexed URL hostnames are better in general.

But if an item is included in more than one site, it is indexed only once with the first site hostname. To address that issue, we introduced a coveoProcessParsedRestResponse pipeline processor in the July 2015 release of Coveo for Sitecore to automatically resolve the URL of the search results at query time based on the current request's site (see Using the Sitecore LinkManager to Resolve URIs in a Coveo Search Page).

My recommendation is to upgrade to the July 2015 or newer release of Coveo for Sitecore.

Ask a question