Gravatar for francisclin@gmail.com

Question by francisclin, Apr 26, 2019 5:34 AM

Field not showing up in coveo range facet dropdown options

Hi, I've defined a new facet "My Display Date" in /sitecore/system/Settings/Buckets/Facets but it does not show up in the Field dropdown when I try to update/add a Coveo Range Facet View. I can see the other fields in the dropdown but not the new field.

This is how it goes in my coveo config:

<fieldType fieldName="my_display-date" isFacet="true" isExternal="true" isSortable="true" includeForFreeTextSearch="false" isMultiValue="false" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
:<br>:
<field fieldName="my_display-date" returnType="datetime">MyProject.namespace.web.computedfield, MyProject.namespace.web</field>

Checked the coveo admin tool and I verified the my_display-date is of type datetime and the Facet column is ticked, rebuilt the coveo indexes many times, and checked the field Field for incorrect field name spelling.

Is there anything else I could have missed?

Other details:
Sitecore 9, Coveo V4.1, still using Legacy UI.

Any answer would be appreciated.

1 Reply
Gravatar for francisclin@gmail.com

Answer by francisclin, May 8, 2019 8:12 AM

To solved this issue what we did is to deviate from using the computed field approach and just use the the field configuration below:

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

Any item I created in /sitecore/system/Settings/Buckets/Facets that uses the field name above appears in the dropdown selection.

Ask a question