Gravatar for kalisbtech@gmail.com

Question by Kaleeswaran, Apr 29, 2019 9:57 AM

is there a way to split a facets into multiple subfacets for string type dynamically at querytime?

Hi,

We have a requirement to split facets into multiple sub facets at query time and we are using coveo Hive for Site core 9.1.

Example :

Consider there is a facet field named tagvalue,which is having the value as "category=A1;type=B1;category=A2;type=B2;application=app1;application=app2......"

I want to split this facet as below in the results page.

category

A1

A2

Type

B1

B2

Application

App1

App2

Kindly let us know is there a way to achieve this functionality in coveo hive.

Thanks

N.Kaleeswaran

Gravatar for kalisbtech@gmail.com

Comment by Kaleeswaran, May 7, 2019 11:27 AM

Any Updates?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, May 10, 2019 1:31 PM

Hi,

This is not possible on the UI side of things. However, as the data comes from Sitecore items, you can easily create your own three Computed Index Field C# classes to index this data in 3 different fields: categorytagvalue, typetagvalue, applicationtagvalue.

The C# code must extract the right values from the original string.

Then you create 3 facets, one on each computed index field.

Ask a question