Developer forum

Forum » CMS - Standard features » Repository index facets from comma splitted values

Repository index facets from comma splitted values

Thomas Larsen
Reply

I have a custom product field, containing a comma separated list of values. How do I get the values divided on comma in my facets.

I've tried to create a custom type using the CommaAnalyzer without any luck.

dw_2016-05-17_16-54-11.png

Replies

 
Nicolai Høeg Pedersen
Reply

You add a field to the index where the field type is system.string[] - an array. Then it should be indexed as an array giving you what you want.

 
Thomas Larsen
Reply

Hi Nicolai,

I've tried that. Se attachment

And it did not work :-)

dw_2016-05-17_22-13-33.png
 
Thomas Larsen
Reply

If i set the field type to  system.string[] it works, but then it also splits on blank spaces

 
Thomas Larsen
Reply

Using different analyzer does not seem to have any effect on the analyzed data.

What am I doing wrong?

dw_2016-05-23_22-39-53.png
 
Nicolai Høeg Pedersen
Reply

Hi Thomas

If you add a space after the commas, set the type to string[] and mark it to be Analyzed, will that help?

BR Nicolai

 
Dmitriy Benyuk
Reply

Hi Thomas,
Try to setup your custom field type as Nicolai suggested with system.string[] type and in the field settings un-check "Analyzed" option, and keep just "Indexed".
Regards, Dmitrij
 

Untitled.png

 

You must be logged in to post in the forum