Gravatar for

Question by benaldo, Dec 15, 2016 9:52 AM

External field not present in raw data


I have an external source configured in coveo for sitecore. After a recent upgrade to 4.0, I'm unable to get my external field showing in the raw data returned from the search API. This field is also present for the sitecore items, if that makes a difference. Here's what I've tried so far:

  • Added the field to the raw:AddFieldByFieldName section under fieldMap
  • Added the field to the raw:AddExternalField section under fieldMap
  • Tried it in both spots just to try
  • Confirmed that the field is present for items that I'm testing on using the Index Browser
  • Confirmed the field is enabled for Field Queries in CES admin (it has field queries, multi-value facet, and display field checked)

Is there something simple I'm missing here? Or any other places I should look? Thanks!

I have the external fields patching in from a separate file (appconfig\include\coveo\zcoveo.external.fields.config). I've confirmed in the showConfig that they are going to the right place.

<configuration xmlns:patch="">
          <fieldMap type="Coveo.SearchProvider.CoveoFieldMap, Coveo.SearchProvider">
            <externalFields hint="raw:AddExternalField">
               <field fieldName="categoryhierarchy" fieldTypeName="string" />
Gravatar for

Comment by Simon, Dec 15, 2016 2:47 PM

I tried adding a new one in the external field and I see it in my raw data. I am using version 4.0 and I created a External Field section in the existing fieldMap section in the Coveo Search Provider Custom config file. The section was already in the Coveo Search Provider config file but I am patching it. In which config are you adding it? And could you edit your question to show your External field section?

Gravatar for

Comment by benaldo, Dec 15, 2016 3:04 PM

I've updated the original with the file I'm using and the patch location.

Gravatar for

Comment by Jean-François L'Heureux, Jan 2, 2017 11:34 AM

Fields that exist on Sitecore content and on external content should be configured isExternal="true" in the raw:AddFieldByFieldName section of the configuration.

The raw:AddExternalField section is reserved for fields that exist only in external content and not in Sitecore content.

0 Reply
Ask a question