When using the ATG-Endeca Integration it is simple and clear how to filter out products from Endeca but not so obvious how to filter out SKUs from the index.
Suppose that your data model has more than one sub-type of SKU and that each product’s childSKU property contains more than one sub-type of SKU. Here are the steps required to only index the SKU types that you want:
- Create a separate indexed items group for the childSKUs property. You can then reference the indexed items group in the product-sku-output-config.xml
<item property-name="childSKUs" repository-item-group="/component/path/SpecificSkusIndexedItemGroups"> ... </item>
- Create the SpecificSkusIndexedItemsGroup component
SpecificSkusIndexedItemsGroup< $basedOn=/atg/commerce/search/IndexedItemsGroup # The name of the RepositoryItemGroup groupName=Specific Skus Indexed Items Group # The product item-descriptor name repositoryViewName=sku # The RuleSet that defines the set of items to be indexed. rules= <ruleset> <accepts> <rule op=eq> <valueof target="type"> <valueof constant="someSkuType"> </rule> </accepts> </ruleset>
- Restart and do a baseline using the ProductCatalogSimpleIndexingAdmin component
You should now have only the SKUs that you want in the index. Enjoy.