The main class used to specify how to transform repository items into records is atg.endeca.index.EndecaIndexingOutputConfig. The ATG-Endeca integration includes two components of this class:

Each EndecaIndexingOutputConfig component has a number of properties, as well as an XML definition file, for configuring how repository data should be transformed to create Endeca records. The configuration of these components is discussed in detail in EndecaIndexingOutputConfig Components.

ProductCatalogOutputConfig Component

The ProductCatalogOutputConfig component specifies how to create Endeca data records that represent items in the ATG product catalog. Each record represents either one product or one SKU (depending on whether you use product-based or SKU-based indexing), and contains the values of the ATG properties to be included in the index.

In addition, each record includes properties of parent and child items. For example, a record that represents a product includes information about its parent category’s properties, as well as information about the properties of its child SKUs. This makes it possible to search category and SKU properties as well as product properties when searching for products in the catalog.

The names of the output properties include information about the item types they are associated with. For example, a record generated from a product might have a product.description property that holds the value of the description property of the product item, and a sku.color property that holds the value of the color properties of the product’s child SKUs.

Multi-value properties are given names without array subscripts. For example, a product repository item might have multiple child sku items, each with a different value for the color property. In the output record there will be multiple entries for sku.color.

The following is an XML representation of a portion of a Commerce Reference Store record. Note that the actual records submitted to the CAS data record store are in a binary object format, not XML.

<RECORD>
  <PROP NAME="record.spec">
    <PVAL>
  clothing-sku-xsku1013..xprod1003.masterCatalog.en__US.plist3080003__plist3080002
    </PVAL>
  </PROP>
  <PROP NAME="product.baseUrl">
    <PVAL>atgrep:/ProductCatalog/clothing-sku/xsku1013</PVAL>
  </PROP>
  <PROP NAME="product.repositoryId">
    <PVAL>xprod1003</PVAL>
  </PROP>
  <PROP NAME="product.brand">
    <PVAL>CricketClub</PVAL>
  </PROP>
  <PROP NAME="product.language">
    <PVAL>English</PVAL>
  </PROP>
  <PROP NAME="product.priceListPair">
    <PVAL>plist3080003_plist3080002</PVAL>
  </PROP>
   <PROP NAME="product.description">
    <PVAL>Genuine English leather wallet</PVAL>
  </PROP>
  <PROP NAME="product.displayName">
    <PVAL>Organized Wallet</PVAL>
  </PROP>
  <PROP NAME="sku.activePrice">
    <PVAL>24.49</PVAL>
  </PROP>
  <PROP NAME="clothing-sku.color">
    <PVAL>Brown</PVAL>
  </PROP>
  <PROP NAME="clothing-sku.size">
    <PVAL>One Size</PVAL>
</RECORD>
CategoryToDimensionOutputConfig Component

The CategoryToDimensionOutputConfig component specifies how to create Endeca dimension value records that represent categories from the ATG product catalog. This category dimension makes it possible to use Oracle Endeca Commerce to navigate the categories of a catalog.

CategoryToDimensionOutputConfig creates dimension values using a special representation of the category hierarchy that is generated by the/atg/commerce/endeca/index/CategoryTreeService component, as described in the CategoryTreeService Class section.

The following example shows an XML representation of a portion of a category dimension value record generated by CategoryToDimensionOutputConfig:

<RECORD>
  <PROP NAME="dimval.spec">
    <PVAL>rootCategory.cat10016.cat10014.catDeskLamps</PVAL>
  </PROP>
  <PROP NAME="dimval.qualified_spec">
    <PVAL>product.category:rootCategory.cat10016.cat10014.catDeskLamps</PVAL>
  </PROP>
  <PROP NAME="dimval.prop.category.rootCatalogId">
    <PVAL>masterCatalog</PVAL>
  </PROP>
  <PROP NAME="dimval.prop.category.ancestorCatalogIds">
    <PVAL>masterCatalog</PVAL>
  </PROP>
  <PROP NAME="dimval.dimension_spec">
    <PVAL>product.category</PVAL>
  </PROP>
  <PROP NAME="dimval.parent_spec">
    <PVAL>cat10016.cat10014</PVAL>
  </PROP>
  <PROP NAME="dimval.display_order">
    <PVAL>2</PVAL>
  </PROP>
  <PROP NAME="dimval.prop.category.repositoryId">
    <PVAL>catDeskLamps</PVAL>
  </PROP>
  <PROP NAME="dimval.prop.category.catalogs.repositoryId">
    <PVAL>masterCatalog,homeStoreCatalog</PVAL>
  </PROP>
  <PROP NAME="dimval.display_name">
    <PVAL>Desk Lamps</PVAL>
  </PROP>
</RECORD>

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