The following excerpt from a _.json
file illustrates how a dimension is configured. The dimension is named camera.color
.
The displayConfig
parameter specifies that dimension values in this dimension are sorted in descending order of frequency; ties are sorted in ascending alphabetical order. For example, suppose that two dimension values, “Action Sports Cameras” and “Binoculars” each have 44 records tagged to them. After being assigned the same location in the refinements list by descending order of frequency, they are sorted in ascending alphabetical order. Thus “Action Sports Cameras” comes immediately before “Binoculars” in the refinements list.
The configuration of the camera.color
dimension includes the parameter "mergeAction" : "update"
. This parameter must be included when the owner of the dimension is system
, as is currently required.
{ "camera.color": { "isWildcardEnabledInRecordSearch": true, "displayOrder": 4, "displayConfig": { "sort": "freq,desc;alpha,asc" }, "sourcePropertyNames": ["camera.Color of product"], "isAutogen": true, "isRecordSearchEnabled": true, "ecr:type": "dimension", "mergeAction" : "update" } }
Note: Do not modify dimension parameters not discussed in this section unless you are certain that you have complete and accurate knowledge about those parameters.