Hiding categories and products using deep category unpublish
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 Commerce+ Search to not display
products that are hidden from shoppers. It also allows Commerce+ Search to not
index categories that are hidden from shoppers.
Procedure
-
Configure the search properties in the catalog component configuration file
(wc-component.xml) on the Commerce+ EAR:
-
Configure the search properties in the catalog component configuration file
(wc-component.xml) on the Search EAR:
-
Preprocess the
Commerce+ search index data, passing in the following extra parameters:
-publishedOnly true -deepUnpublish trueEnabling 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 to the index build REST call, so that the server runtime behaves the same during indexing.