Data services
Rules change values. Data services change rows: they split one product into several, merge several into one, or remove duplicates. They run before the normalization rules, in the order of the list. Open Data services in a project, then Create a data service.
The four services
Section titled “The four services”| Service | What it does | Example |
|---|---|---|
| Split | One row per value of a column holding a list. | A product with sizes S, M, L becomes three products. |
| Merge | One row per value of a column, the other columns combined. | Rows of the same product merged, prices kept at the lowest. |
| Pivot | Rows become columns. | One row per language becomes one row per product with fr_title, en_title. |
| Deduplicate | Keeps one row per value of a column. | A supplier file listing the same SKU twice. |
Settings
Section titled “Settings”- Split: the column to split, the Values Separator (for example
,or|), and how each new row gets its id: the original id plus the value (1001_S), plus a number (1001_1), or another column. The ID column is found automatically (id,sku…), or chosen. - Merge: the column to group by, then for each other column how values are combined: first, last, joined text (with a separator), sum, minimum, maximum or average.
- Pivot: the column that identifies a product (for example the SKU), the column whose values become column names (for example
locale), and the columns to spread out.pricewith localefrbecomesfr_price. - Deduplicate: the column that must be unique, and whether to keep the first or the last row.
Where it runs
Section titled “Where it runs”- Global services run on the whole catalog, after the sources are combined.
- A service on a Specific source runs on that source alone, before it joins the catalog. Use it to split or clean one supplier’s file.
Saving a service rebuilds the catalog; the preview shows the new rows once it is done.