Records are tagged with dimension values in either of two ways, depending on whether the dimension values belong to an automatically generated flat dimension or to a hierarchical dimension.

Flat dimensions are configured in index-config.json by attributes that contain the parameters shown in the following example:

"camera.video_capability" : {
  "jcr:primaryType" : "endeca:dimension",
  "isAutogen" : true,
  "sourcePropertyNames" : [ "video_capability" ]
},

where:

"camera.video_capability" is the name of the flat dimension.

"jcr:primaryType" : "endeca:dimension" indicates that this attribute configures a dimension rather than a property.

"isAutogen" : true indicates that this is an automatically generated flat dimension.

"sourcePropertyNames" : [ "video_capability" ] specifies a source record property or properties whose values will become dimension values in the flat dimension.

Tagging is controlled by the last of the properties shown in the example above, sourcePropertyNames. The value or values of this parameter specify source record properties whose values will become dimension values in the flat dimension configured by this attribute (in this example, camera.video_capability).

When a dimension value is created based on a record property, that record is automatically tagged to the new dimension value. For example, if a source record has a property named video_capability whose value is "slow", a dimension value named "slow" will be added to the dimension camera.video_capability, and the record will be tagged to this dimension value.

If no record has a value in any of the properties specified by sourcePropertyName, no dimension is generated.


Copyright © Legal Notices