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.
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.
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.
Hi Nicolai,
I've tried that. Se attachment
And it did not work :-)
If i set the field type to system.string[] it works, but then it also splits on blank spaces
Using different analyzer does not seem to have any effect on the analyzed data.
What am I doing wrong?
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
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
You must be logged in to post in the forum