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 sections that follow 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
Results list ID column

itemId

$repositoryId

Product name
Results list Name column

itemDisplayName

role:displayname

Product Description
Results list Description secondary property

itemDescription

role:description

Product name
Content Item Details popup

viewItemDisplayName

displayname

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
Results list ID column

itemId

childSKUs.$repositoryId

SKU name
Results list Name column

itemDisplayName

role:childskus.
displayname

SKU Description
Results list Description secondary property

itemDescription

role:childskus.
description

SKU name
Content Item Details popup

viewItemDisplayName

childskus.displayname

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
Results list ID column

itemId

$repositoryId

 

Product name
Results list Name column

itemDisplayName

role:displayname

 

Product Description
Results list Description secondary property

itemDescription

role:description

 

SKU ID
Sub-item results list ID column

subItemId

childSKUs.$repositoryId

 

SKU name
Sub-item results list Name column

subItemDisplayName

role:childskus.
displayname

 

SKU size
Sub-item results list Size column

subItemSize

role:childskus.size

 

SKU color
Sub-item results list Color column

subItemColor

role:childskus.color

 

SKU price
Sub-item results list Price column

subItemPrice

Price

 

Product name
Content Item Details popup

viewItemDisplayName

Displayname

 

SKU name
Content Item Details popup

viewSubItemDisplayName

childskus.displayname

 

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices