A property can consist of an ordered list of strings, Booleans, items, or other lists.
Because lists can be used for a variety of purposes, Oracle Guided Search does not include any generic editors for working with lists. However, editors intended for specific purposes may store their values in list properties.
To add a list property to a template:
Following is an example of a template that uses lists both with and without default values:
{
"@description": "${template.description}",
"@group": "MainContent",
"ecr:createDate": "2016-09-12T17:33:58.542+05:30",
"@thumbnailUrl": "thumbnail.png",
"ecr:type": "template",
"defaultContentItem": {
"@name": "Results List",
"relRankStrategy": "",
"recordsPerPage": "10",
"sortOption": {
"@class": "com.endeca.infront.navigation.model.SortOption",
"label": "Most Sales",
"sorts": [{
"@class": "com.endeca.infront.navigation.model.SortSpec",
"key": "product.analytics.total_sales",
"descending": false
}]
}
},
<!-- additional elements omitted from this example -->
"typeInfo": {
"boostStrata": {"@propertyType": "List"},
"buryStrata": {"@propertyType": "List"},
"recordsPerPage": {"@propertyType": "String"},
"relRankStrategy": {"@propertyType": "String"},
"sortOption": {"@propertyType": "Item"}
}
}