The importContent command enables you to configure index attributes by importing into the ECR a JSON document stored on your local file system. A JSON document can configure dimensions, properties, or derived properties.

If the /system folder was not configured when your Guided Search application was initialized, you must configure it before you create configuration for individual owners, as follows:

{
  "ecr-type": "attributes-owner-folder",
  "common.record_type" : {
    "displayOrder" : 18,
    "jcr:primaryType" : "endeca:dimension"
  },
  "common.id" : {
    "propertyDataType" : "ALPHA",
    "jcr:primaryType" : "endeca:property",
    "isRecordFilterable" : true
  }
}

Specify this configuration in a file named _.json, which you then import into the IFCR /system folder. To import this configuration, run a command of the following form:

runcommand.bat IFCR importContent attributes/system C:\endeca\apps\appName\config\import\attributes\system

where:

To import this configuration remotely, use a POST request of the following form (For information about how to specify the configuration to be imported in JSON format and in ZIP format, see Understand ZIP format and JSON format (remote access only):

POST http://host:port/ifcr/gsadmin/v1/Discover/attributes/system

You must create a subfolder of the IFCR /attributes folder for each individual owner of index attribute configuration.

The JSON document containing the configuration for an individual owner must include the "ecr:type": "attributes-owner-folder" parameter. For example, the following JSON document configures a dimension for an individual owner:

{ 
  "ecr:type" : "attributes-owner-folder", 
  "camera.operating_temperature_range_t-t" : {
    "propertyDataType" : "ALPHA", 
    "ecr:type" : "property", 
    "sourcePropertyNames" : [
      "camera.Operating temperature range (T-T)" 
    ] 
  }, 
  "camera.video_capability" : {
    "displayOrder" : 7, 
    "ecr:type" : "dimension", 
    "isAutogen" : true, 
    "sourcePropertyNames" : [
      "camera.Video capability" 
    ] 
  }, 
  "camera.optical_sensor_size" : {
    "propertyDataType" : "ALPHA", 
    "ecr:type" : "property", 
    "sourcePropertyNames" : [
      "camera.Optical sensor size" 
    ] 
  } 
} 

To import this configuration, run a command of the following form:

runcommand.bat IFCR importContent attributes/ownerName C:\endeca\apps\appName\config\import\attributes\ownerName
                  

where:

To import this configuration remotely, use a POST request of the following form (For information about how to specify the configuration to be imported in JSON format and in ZIP format, see Understand ZIP format and JSON format (remote access only):

POST http://host:port/ifcr/gsadmin/v1/Discover/attributes/owner-name
                  


Copyright © Legal Notices