The exportContent command enables you to export index attribute configuration from the ECR to a specified directory in your local file system. The configuration is exported in a ZIP file that contains a _.json file.

To export the index attribute configuration of a single specified owner, use an exportContent command of the following form:

runcommand.bat IFCR exportContent attributes/{owner} {directory}

For example, the following command exports to the folder D:\Export\Attributes\ownerOne the index attribute configuration belonging to the ownerOne owner, in a file named ownerOne.zip:

runcommand.bat IFCR exportContent attributes/ownerOne D:\Export\Attributes

The following JSON illustrates the exported configuration belonging to an individual owner such as ownerOne:

{ "ecr:lastModifiedBy": "admin", 
  "ecr:lastModified": "2016-06-14T15:34:29.331-04:00", 
  "ecr:createDate": "2016-06-14T15:34:29.331-04:00", 
  "ecr:type": "attributes-owner-folder",
  "camera.35_mm_camera_lens_equivalent": {
    "ecr:lastModifiedBy": "admin",
    "propertyDataType": "ALPHA", 
    "ecr:lastModified": "2016-06-14T15:34:29.331-04:00", 
    "sourcePropertyNames": [
      "camera.35 mm camera lens equivalent"
    ], 
    "ecr:createDate": "2016-06-14T15:34:29.331-04:00",
    "ecr:type": "property" 
    }, 
    "camera.color": {
      "isWildcardEnabledInRecordSearch": true, 
      "ecr:lastModifiedBy": "admin", 
      "ecr:lastModified": "2016-06-14T15:34:29.332-04:00", 
      "displayOrder": 4, 
      "sourcePropertyNames": [
        "camera.Colour of product"
      ], 
      "isAutogen": true, 
      "ecr:createDate": "2016-06-14T15:34:29.332-04:00", 
      "isRecordSearchEnabled": true, 
      "ecr:type": "dimension" 
    },
    "product.max_price": {
      "derivedPropertySource": "product.price",
      "ecr:lastModifiedBy": "admin", 
      "ecr:lastModified": "2016-06-14T15:34:29.333-04:00", 
      "derivedPropertyFunction": "MAX",
      "ecr:createDate": "2016-06-14T15:34:29.333-04:00", 
      "ecr:type": "derived-property" 
    } 
}

To export the index attribute configuration of all owners, use an exportContent command of the following form:

runcommand.bat IFCR exportContent attributes directory
                  

where:

For example, the following command exports configuration to the folder D:\Export\Attributes on the local file system:

runcommand.bat IFCR exportContent attributes D:\Export\Attributes

If more than one owner has been configured, the exported content in Attributes.zip consists of the following _.JSON files:

{ 
  "ecr:lastModifiedBy": "admin", 
  "ecr:lastModified": "2016-06-08T21:08:28.620Z", 
  "ecr:createDate": "2016-05-23T11:06:48.229-04:00",
		"ecr:type": "attributes-folder" 
}		
{ 
  "ecr:lastModifiedBy": "admin", 
  "ecr:lastModified": "2016-06-10T09:55:51.788-04:00", 
  "ecr:createDate": "2016-06-10T09:55:51.788-04:00", 
  "ecr:type": "attributes-owner-folder",
		"camera.35_mm_camera_lens_equivalent": {
    "ecr:lastModifiedBy": "admin",
		  "propertyDataType": "ALPHA", 
    "ecr:lastModified": "2016-06-10T09:55:51.789-04:00", 
    "sourcePropertyNames": [
      "camera.35 mm camera lens equivalent"
      ], 
    "ecr:createDate": "2016-06-10T09:55:51.789-04:00",
		  "ecr:type": "property" 
		}, 
  "camera.color": {
    "isWildcardEnabledInRecordSearch": true, 
    "ecr:lastModifiedBy": "admin", 
    "ecr:lastModified": "2016-06-10T09:55:51.789-04:00", 
    "displayOrder": 666, 
    "sourcePropertyNames": [
      "camera.Colour of product"
    ], 
    "isAutogen": true, 
    "ecr:createDate": "2016-06-10T09:55:51.789-04:00", 
    "isRecordSearchEnabled": true, 
    "ecr:type": "dimension" 
    }, 
  "product.max_price": {
    "derivedPropertySource": "product.price",
    "ecr:lastModifiedBy": "admin", 
    "ecr:lastModified": "2016-06-10T09:55:51.789-04:00", 
    "derivedPropertyFunction": "MAX",
    "ecr:createDate": "2016-06-10T09:55:51.789-04:00", 
    "ecr:type": "derived-property" 
    } 
}

Copyright © Legal Notices