WebSphere Commerce EnterpriseIntroduced in Feature Pack 2

Catalog filter customization: Integrating search with the Catalog Filter and Pricing tool

A catalog filter is a set of user defined conditions that calculate the categories and catalog entries that a customer is entitled to. The catalog filter provides an entitlement search expression as part of the search criteria, this entitlement check uses the WebSphere Commerce search framework. Without customization, the search framework uses Solr. If required, you can use another search engine.

Procedure

  1. Create a class, for example com.mycompany.catalogfilter.ResolveCatalogFiltermySearchExpressionCmdImpl which implements the interface com.ibm.commerce.contract.catalogfilter.command.ResolveCatalogFilterSearchExpressionCmd and extends from com.ibm.commerce.command.TaskCommandImpl
  2. Implement the logic for building your entitlement expression within performExecute method. Use the static method CatalogFilterHelper.getCatalogFilterById to get the CatalogFilter instance containing all properties of a Management Center defined catalog filter.
  3. Register the class implementation in command registry by running the following SQL statement:
    insert into CMDREG ("STOREENT_ID", "INTERFACENAME", "DESCRIPTION", "CLASSNAME", "PROPERTIES", "LASTUPDATE", "TARGET", "OPTCOUNTER")
     values(0, 'com.ibm.commerce.contract.catalogfilter.command.ResolveCatalogFilterSearchExpressionCmd', 
    NULL, 'com.mycompany.catalogfilter. ResolveCatalogFilterOminFindExpressionCmdImpl', NULL, NULL, 'Local', NULL);