Gravatar for wvuong@captechconsulting.com

Question by wvuong, Apr 18, 2016 9:35 AM

Top Results Pub Web Not Syncing Correctly

I am trying to use Top Results as managed through the Sitecore Content Editor. I have a CM server and 2 CD servers with a 'master' and 'web' on the CM and a 'pubweb' on the CDs. I have setup the top results synchronization to include the pubweb database in the Coveo.SearchProvider.Config file and I see three top generated results in the admin tool, but the top result for pubweb uses the web database for some reason.

Here you can see that it using the correct source pubweb, but in the queries and address field, it is referencing the item in the web db. alt text

This is the top result item for the master db and it is correct. alt text

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 18, 2016 10:02 AM

Hi,

Can you give me the following sections of your configuration on your CM and CDs please? It will help us understand your current Sitecore setup.

  • sitecore/databases/database[id=web]
  • sitecore/databases/database[id=pubweb]
  • sitecore/scheduling/agent[type="Coveo.SearchProvider.Agents.SynchronizeTopResults, Coveo.SearchProviderBase"]
  • sitecore/sites/site[name=website]
  • sitecore/contentSearch/configuration/indexes/index[id=Coveowebindex]
  • sitecore/contentSearch/configuration/indexes/index[id=Coveopubwebindex]
Gravatar for wvuong@captechconsulting.com

Comment by wvuong, Apr 20, 2016 10:13 AM

https://captechventuresinc-my.sharepoint.com/personal/wvuongcaptechventurescom/_layouts/15/guestaccess.aspx?guestaccesstoken=%2b%2fx%2f0NhdoJb2f2mnXyVA487H3WJ%2bbtcKlBRy7ZoEJcM%3d&docid=01fd035f74cb5459ab9f400af78bff70c

Here is a link to a xml file containing the various elements you wanted.

Gravatar for wvuong@captechconsulting.com

Comment by wvuong, Apr 20, 2016 1:40 PM

Also when syncing the pubweb top results manually in the control panel, the top results for pubweb in the admin tool are correctly pointing to the pubweb items, but then it gets deleted and replaced with the incorrect references again (I'm assuming theres something wrong with my configuration of the synchronization agent)

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 20, 2016 2:09 PM

Hi,

I guess the configuration you just linked is your CM instance configuration. Can I get the same information for all your CDs please? I am thinking one of your CD is replacing the top results with the wrong information.

Gravatar for wvuong@captechconsulting.com

Comment by wvuong, Apr 20, 2016 2:45 PM

Yes, that was for a cm instance. Here are the elements for the CD instance: https://captechventuresinc-my.sharepoint.com/personal/wvuongcaptechventurescom/_layouts/15/guestaccess.aspx?guestaccesstoken=LQ4vQv5I%2b6Eld7SjwKt%2bFo0f3rRSvH%2bMAgIXtEu8oso%3d&docid=059075385061a4fe5ae0a5a58b7b604bb

I noticed that the synchronization agent did not have pubweb as a value and think that may be the issue, also there is no Coveowebindex defined in the production config.

2 Replies
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Apr 20, 2016 3:44 PM

Thank you for the configuration sections.

After review, here's what I think should be modified in your CD instances configuration files:

  • Change the Coveopubwebindex index crawler database from "web" to "pubweb". This is really strange that it is currently using the web database as you have a pubweb one.
  • Remove the SynchronizeTopResults agent completely. This way, the CM server will be the only one updating top results in CES and the CD servers won't update them anymore.
Gravatar for wvuong@captechconsulting.com

Comment by wvuong, Apr 20, 2016 4:32 PM

I removed the SynchronizeTopResults from the CD server and that resolved the issue. Thanks!

Gravatar for slangevin@coveo.com

Answer by Simon, Apr 18, 2016 9:53 AM

Hi,

Here is how I would setup my indexes:

CM:

  • Master
  • Web
  • Pub

CD:

  • Pub (ReadOnly, strategies disabled)

Also on the CD, I would enable all the SKIP nodes to disable the link with the Admin Service and comment out the agent synchronizing the Top Results. This way, I would give all the management rights to the CM.

For more information: https://developers.coveo.com/display/public/SitecoreV3/Installing+Coveo+for+Sitecore+in+a+CM+or+CD+Configuration

So on the CM, I would have the following:

  <agent type="Coveo.SearchProvider.Agents.SynchronizeTopResults, Coveo.SearchProviderBase" method="Run" interval="00:01:00">
    <DatabasesToSynchronize>master;web;pub</DatabasesToSynchronize>
  </agent>

Is it the way you built your setup?

Simon

Ask a question