Disabling search expression providers and result filters in the search configuration file (wc-search.xml)
You can disable certain expression providers and result filters in the WebSphere Commerce search configuration file (wc-search.xml) to optimize the storefront flow and improve the overall response time for certain types of WebSphere Commerce search scenarios.
Procedure
-
Disabling configurations:
You can disable some configurations, for example, expression providers, preprocessors, postprocessors, and result filters from the in the WebSphere Commerce search configuration file (wc-search.xml) on the WC and Search EARs.
This might be helpful when using a customized version of the wc-search.xml file in the -ext customization directory.
For example, the following snippet disables a query postprocessor calledSolrSearchSampleQueryPostprocessor
:<_config:postprocessor classname="com.ibm.commerce.catalog.facade.server.services.search.query.solr.SolrSearchSampleQueryPostprocessor" enabled="false" />
Note: You cannot disable a configuration by copying statements to the -ext version of the wc-search.xml file and commenting them out in that version. At run time this version of the file is merged with its original in the -fep directory. Commenting out a statement in the -ext version of the file does not comment it out of the original -fep version. In order to disable a configuration, itsenabled
attribute must be set to "false." -
Consider disabling the following expression providers from the WebSphere Commerce search
configuration file (wc-search.xml) (WC EAR):
- SolrSearchProductEntitlementExpressionProvider
- This search expression provider performs product entitlement. It is performed by calling ProductEntitlementExpressionHelper to build search engine-specific query expressions for contracts that contain CatalogFilter Term Conditions and ProductSet Term Conditions.
- You can disable this expression provider from your search profile if your site does not contain customer-specific entitlement.
- SolrSearchInventoryExpressionProvider
- This search expression provider handles search requests to work with the Inventory index.
- You can disable this expression provider from your search profile if your site does not use the Inventory extension index.
-
Consider disabling the following result filters:
- SearchCatalogEntryViewPriceResultFilter
- This search result filter modifies prices in each CatalogEntryView object. Its purpose is to determine the calculated contract price suitable for display to the shopper.
- You can disable this result filter from your search profile if your site does not contain customer-specific price lists.
- Alternatively, setting the price mode to 1 also disables this result filter.
- SearchCatalogEntryViewSingleSKUResultFilter
- This search result filter determines whether each CatalogEntryView object is a single SKU. The result is needed for defining the Add To Cart button behavior on the Search Result display page.
- If the product only contains a single SKU, the shopper can add the selection directly into the shopping cart. Otherwise, a Quick Info pop-up is displayed to prompt the shopper to select the SKU.
- You can disable this result filter from your search profile if your site does not require this cart behavior.
- SearchCatalogGroupEntitlementResultFilter
- This search result filter determines whether the current user is entitled to the returned CatalogGroupView objects in the response.
- You can disable this result filter from your search profile if your site does not contain customer-specific entitlement.
- SearchCatalogNavigationViewDynamicKitResultFilter
- This search result filter populates a Dynamic Kit response Business Object Document (BOD) with its configuration data.
- This data includes the Model name, Model configuration, and whether the Dynamic Kit has a predefined configuration.
- You can disable this result filter from your search profile if your site does not use Sterling Configurator.
- SearchCatalogEntryViewDescriptionResultFilter
- This search result filter populates catalog entry overrides for an Extended Site store.
- The fields include name, short description, long description, thumbnail, full image and keyword.
- You can disable this result filter from your search profile if your site does not require this functionality.