ATG Merchandising uses a mapping component to map search testing properties to properties returned in the search response XML file. This provides an easy way to configure search testing to support different search options, such as SKU indexing or grouping by product (for more information on these options, see Using Grouping). You can also update the mapping to accommodate custom property names in your search response XML.
The property mapping component is:
atg/search/testing/SearchTestingUIPropertyMapping
The following sections describe the default property mappings for each supported search configuration:
Mappings when ATG Search Is Indexed by Product
The following property mappings are used if you index your catalog by product:
propertyMapping=itemId=$repositoryId,\
itemDisplayName=role:displayname,\
itemDescription=role:description,\
viewItemDisplayName=displayname
The following table describes each item in the mapping:
Description | Search Testing UI Property | Search Response XML Property |
---|---|---|
Product ID |
|
|
Product name |
|
|
Product Description |
|
|
Product name |
|
|
Mappings when ATG Search Is Indexed by SKU
The following property mappings are used if you index your catalog by SKU but you do not group SKUs by product:
propertyMapping=itemId=childSKUs.$repositoryId,\
itemDisplayName= role:childskus.displayname,\
itemDescription=role:childskus.description,\
viewItemDisplayName=childskus.displayname
The following table describes each item in the mapping:
Description | Search Testing UI Property | Search Response XML Property |
---|---|---|
SKU ID |
|
|
SKU name |
|
|
SKU Description |
|
|
SKU name |
|
|
Mappings when ATG Search Is Indexed by SKU and Grouped by Product
The following property mappings are used if you index your catalog by SKU and group SKUs by product:
propertyMapping=itemId=$repositoryId,\
itemDisplayName=role:displayname,\
itemDescription=role:description,\
subItemId=childSKUs.$repositoryId,\
subItemDisplayName=role:childskus.displayname,\
subItemSize=role:childskus.size,\
subItemColor=role:childskus.color,\
subItemPrice=price,\
viewItemDisplayName=displayname,\
viewSubItemDisplayName=childskus.displayname
The following table describes each item in the mapping:
Description | Search Testing UI Property | Search Response XML Property | |
---|---|---|---|
Product ID |
|
| |
Product name |
|
| |
Product Description |
|
| |
SKU ID |
|
| |
SKU name |
|
| |
SKU size |
|
| |
SKU color |
|
| |
SKU price |
|
| |
Product name |
|
| |
SKU name |
|
|