The atg.endeca.index.dimension.RepositoryTypeHierarchyExporter
class creates Guided Search dimension value records from the hierarchy of repository item types, and submits those records to the CAS dimension values record store. This dimension is not typically displayed on a site, but can be used in determining which other dimensions to display. For example, Commerce Reference Store has a furniture-sku
subtype that includes a woodFinish
property that can be used as a Guided Search dimension. A site can include logic to detect whether the items returned from a search are of type furniture-sku
, and display the woodFinish
dimension if they are.
The Guided Search integration includes a component of class RepositoryTypeHierarchyExporter
, /atg/commerce/endeca/index/RepositoryTypeDimensionExporter
, that is configured to work with the ProductCatalogOutputConfig
component. The RepositoryTypeDimensionExporter
component outputs dimension value records for all of the repository item types referred to in the ProductCatalogOutputConfig
definition file, as well as the ancestors and descendants of those item types. RepositoryTypeDimensionExporter
does not create records for any item types that are not part of the hierarchy mentioned in the definition file.
There are additional components of class RepositoryTypeHierarchyExporter
that create dimension value records representing the item types in the content management repository. See the Indexing the Content Management Repository chapter for more information.
The following example shows a record produced by the RepositoryTypeDimensionExporter
component for the product
item type:
<RECORD> <PROP NAME="dimval.dimension_name"> <PVAL>record.type</PVAL> </PROP> <PROP NAME="dimval.display_name"> <PVAL>Product</PVAL> </PROP> <PROP NAME="Endeca.Id"> <PVAL>record.type:product</PVAL> </PROP> <PROP NAME="dimval.spec"> <PVAL>product</PVAL> </PROP> <PROP NAME="dimval.parent_spec"> <PVAL>/</PVAL> </PROP> </RECORD>