We’re building a site that’s going to have a quite advanced filter function. In order to use facets I’ve followed this guide Facetted search with Examine - Umbraco 13 - DEV Community and for simple string or integer values it works as expected but we have some properties that accepts one or more values, resulting on those values being saved in index as a comma separated list
This whole string will then be counted as one facet. Is there a way of indexing string lists so each of these values are counted as one unique value?
I don’t have a test site to play around with on this, but looking at the Examine documentation there’s a config for a multi value facet field. Although I think you’ll need to adjust how the value is being indexed (see multiple-values-per-field)
// Set field to be able to contain multiple values (This is default for a field in Examine. But you only need this if you are actually using multiple values for a single field)
facetsConfig.SetMultiValued("MultiIdField", true);
There was also a lengthy discussion over on Discord about this - hopefully that will contain some nuggets of information to help you out. It’s v10 but the principle is the same.
I’d be interested to hear how you get on with this