The indexing process for Commerce sites is configured through the /atg/commerce/search/ProductCatalogOutputConfig
component. This component’s XML definition file is configured to create an XHTML document for each product in the product catalog.
The XML definition file used in Commerce Reference Store is an XML combination of the definition file included in the DCS.Search.Index
module and Commerce Reference Store-specific extensions added in the Store.Search.Index
module. The Commerce Reference Store extensions add Commerce Reference Store-specific catalog properties to the index, and configure the index to get price values from price lists, as described in Indexing and Querying Price Data. For internationalized sites, the Store.Search.International.Index
also adds configuration for including content in multiple languages.
Each product in the Commerce Reference Store catalog repository has a siteIds
property whose value is a comma-separated list of the sites the product appears on. Certain products appear only on ATG Store US and ATG Store Germany, other products appear only on ATG Home, and some products appear on all three sites.
The XHTML document generated for a product includes a special $siteId
metadata property whose value is based on the value of the product’s siteIds
property. The document includes a separate tag for each site listed in the siteIds
property. For example, the XHTML document for a product found on ATG Store US and ATG Store Germany includes:
<meta name="atg:string,index:$siteId" content="storeSiteUS" />
<meta name="atg:string,index:$siteId" content="storeSiteDE" />
This information is used to determine which results to return when a query is issued from a site, as discussed below.