Gravatar for arif.solkar@kpittechnologieslimited.onmicrosoft.com

Question by Arif, Jul 27, 2018 10:28 AM

Free Text Search and Facet for the Sitecore Tagging filed

I am attempting to setup something with Content Tagging, using the default Sitecore tag template, and the __Semantics field on content items.

My tags are just Tag items (with no fields).

Following are the Coveo.SearchProvider.Custom.config file changes that I have done.

In the computed Field

<fields hint="raw:AddComputedIndexField">
    <field fieldName="parsedsemantics" sourceField="__semantics" referencedFieldName="Name">Coveo.SearchProvider.ComputedFields.ReferencedFieldComputedField, Coveo.SearchProviderBase</field>
</fields>

And under field Maps

<fieldMap>
    <fieldType fieldName="__semantics" isMultiValue="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
    <fieldType fieldName="parsedsemantics" isMultiValue="true" includeForFreeTextSearch="true" settingType="Coveo.Framework.Configuration.FieldConfiguration, Coveo.Framework" />
</fieldNames>

Can you help me with this?

Gravatar for flguillemette@coveo.com

Comment by François Lachance-Guillemette, Jul 27, 2018 11:50 AM

Your configuration looks just fine, so can you explain the problem that you are facing here?

Gravatar for arif.solkar@kpittechnologieslimited.onmicrosoft.com

Comment by Arif, Jul 30, 2018 9:33 AM

Hi @Vincent,

We are using the standard fields for tagging which is referred to a data source (the data source are sitecore items) and we are referring to the those item name as referencedField="Name" or referencedField="__displayname" for the computed fields,but both doesn't seems to be working.

And yes we can see the values in the Coveo Cloud fields section but not on the content browser.The issue is while using the standard fields for computed field.

1 Reply
Gravatar for vbernard@coveo.com

Answer by Vincent, Jul 30, 2018 11:25 AM

I see the problem. Our computed field retrieve values from a field defined in the template, but the "Tagging" template doesn't have a field call "name". The "name" and "__displayname" are Sitecore values, and are not considered as fields.

JF did a nice computed field to do this: https://github.com/coveo/samples/tree/master/coveo-for-sitecore/computedfields

Ask a question