Introduced in Feature Pack 2

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

  • Introduced in Feature Pack 2 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 called SolrSearchSampleQueryPostprocessor:
    
    <_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, its enabled attribute must be set to "false."
  • Introduced in Feature Pack 2 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.
    Feature Pack 6 or laterSolrSearchInventoryExpressionProvider
    Feature Pack 6 or laterThis search expression provider handles search requests to work with the Inventory index.
    Feature Pack 6 or laterYou can disable this expression provider from your search profile if your site does not use the Inventory extension index.
  • Feature Pack 4Feature Pack 2Feature Pack 5Feature Pack 3Feature Pack 6 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.
    Feature Pack 5 or laterSearchCatalogGroupEntitlementResultFilter
    Feature Pack 5 or laterThis search result filter determines whether the current user is entitled to the returned CatalogGroupView objects in the response.
    Feature Pack 5 or laterYou can disable this result filter from your search profile if your site does not contain customer-specific entitlement.
    Feature Pack 5 or laterSearchCatalogNavigationViewDynamicKitResultFilter
    Feature Pack 5 or laterThis search result filter populates a Dynamic Kit response Business Object Document (BOD) with its configuration data.
    Feature Pack 5 or laterThis data includes the Model name, Model configuration, and whether the Dynamic Kit has a predefined configuration.
    Feature Pack 5 or laterYou can disable this result filter from your search profile if your site does not use Sterling Configurator.
    Feature Pack 5 or laterSearchCatalogEntryViewDescriptionResultFilter
    Feature Pack 5 or laterThis search result filter populates catalog entry overrides for an Extended Site store.
    Feature Pack 5 or laterThe fields include name, short description, long description, thumbnail, full image and keyword.
    Feature Pack 5 or laterYou can disable this result filter from your search profile if your site does not require this functionality.