Gravatar for

Question by Darko Markovic, Dec 26, 2016 4:28 PM

Sorting by Computed Field Coveo for Sitecore V4


We have upgraded Coveo for Sitecore to v4. We had sorting by computed field. We have the same config right now but we are getting exception:

{code: "InvalidSortField", context: "@socialthinkingbrowsesortorder"}

Settings in Coveo.SearchProvider.Custom.config

<fieldType fieldName="socialthinkingbrowsesortorder" isFacet="true" isMultiValue="false" isSortable="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />

Sitecore settings:

  • Default sort type: Field
  • Default sort direction: Ascending
  • Default sort field: socialthinkingbrowsesortorder
1 Reply
Gravatar for

Answer by Sébastien Belzile, Dec 27, 2016 10:45 AM

Humm… Your field should either have isExternal="true" in your configuration or be translated to Coveo format in the error message.

Could you confirm that:

  1. Your field is not declared as external?
  2. The field is not translated to Coveo format (f[name]XXXXX).
  3. Is socialthinkingbrowsesortorder defined in your field set (in CES or the Cloud platform)?
  4. If 3 is true, is the field sortable?
Gravatar for

Comment by Darko Markovic, Dec 27, 2016 11:40 AM

Hi sbelzile,

I did not know for isExternal="true" option. It has been fixed my problem.


Gravatar for

Comment by Sébastien Belzile, Dec 27, 2016 12:07 PM

I don't think this was the real issue. I think that your field should not be external.

An external field is a field that you don't want to see translated to Coveo format because you are using it in other non-sitecore sources.

The real issue here is that your field should be translated, but it is not. I know some bug have been fixed related to field translation since C4SC v4 was released. Can you tell me what your C4SC version is? I would like to look at the known issues that were fixed.

Gravatar for

Comment by Darko Markovic, Oct 5, 2017 6:15 PM

Hi @Sébastien Belzile,

You were right on this thread isExternal="true" is not real issue although it fix main problem.

We discover the same issue again.

Could you point me to known issues with translation.

Our versions are:

Sitecore: 8.1.160302

Coveo for Sitecore: 4.0.704.0

CES: 7.0 x64 Build 8541.0

Gravatar for

Comment by Darko Markovic, Oct 5, 2017 8:23 PM

Thanks @Sébastien Belzile,

It looks like that upgrade is the best option.

Ask a question