Business users can quickly hide categories, subcategories and the products within them
using the Catalogs tool. For example, if the category contains out-of-season
merchandise. The deep category unpublishing feature allows HCL Commerce Search to not
display products that are hidden from shoppers. It also allows HCL Commerce Search to
not index categories that are hidden from shoppers
Note: Interim fixes for Feature Pack 7 are required
to use this feature. Apply the latest cumulative interim fix for Feature
Pack 7,
JR52306.fep.
Procedure
- Configure the search properties in the catalog component
configuration file (wc-component.xml) on the
WebSphere Commerce EAR:
- Open the catalog component configuration file on the
WebSphere Commerce EAR for editing.
- Set the following properties:
- Configure the search properties in the catalog component
configuration file (wc-component.xml) on the
Search EAR:
- Open the catalog component configuration file on the
Search EAR for editing.
The component configuration file is stored in
the following location:
- Search_eardir/xml/config/com.ibm.commerce.component_name/wc-component.xml
- The default component configuration file for the search application.
- Search_eardir/xml/config/com.ibm.commerce.component_name-ext/wc-component.xml
- The extended component configuration file for the search application.
- To change the value of an existing property in the WebSphere Commerce search component
configuration file, you must create a customized version of the file in this location. The
customized version of the file must contain only the changed properties.
For
more information about the values within the file, see
Search properties in the component configuration file (wc-component.xml) (Search EAR).
- Set the following property:
- Preprocess the WebSphere
Commerce search index data, passing in the following extra
parameters:
-publishedOnly true -deepUnpublish true
Enabling deep category unpublish
results in flagging the TI_DELTA_CATGROUP and TI_DELTA_CATENTRY tables
with an F when publishing and unpublishing categories.
The flag indicates that a full reindexing is run when updating the
search index or opening store preview.
Important: Ensure that the values entered in the component configuration files always
match the value passed into the di-preprocess utility, so that the server runtime behaves the same
during indexing.
What to do next
After enabling deep category unpublish, business users use the Catalogs tool and select the
Display to customer option for all categories and products that they want to
hide. For more information, see Hiding categories.