CSV facet format alternative
Warning: ingesting data directly as facets has been deprecated.
Please ingest the data as metadata instead, and create a facet configuration as shown in our guide on global facet configuration .
If the standard approach of sending one facet per column does not meet your needs, you can also include an arbitrary number of facets in a single column called facets
in your data feed.
Use the following format for the values in the column:
color: red|size: medium
The keys and values should be separated by a colon :
, and different key/value pairs should be separated by a pipe symbol |
.
If a colon or pipe symbol is part of a key or value, then it can be escaped with a backslash \
:
key\:1: val\|ue1|key2: value2
Which will be parsed into 'key:1', 'val|ue1'
and 'key2', 'value2'
.
When sending multiple values for the same facet key, the same key can be repeated each value:
color: red|color: blue|color: green
Updated 3 days ago