close

Filter

loading table of contents...

Connector for HCL Commerce Manual / Version 2107

Table Of Contents

3.3.1 Adding Search Profiles

In WebSphere Commerce Search, search profiles (defined in the wc-search.xml configuration file) are used to control the storefront search experience at a page level by grouping sets of search runtime parameters. The search runtime parameters set needs to be extended to support the feature set introduced by Content Cloud.

Content Cloud requires additional information like SEO identifier or pricing which the WebSphere Commerce REST API does not provide by default. Providing this information via REST API is achieved by customizing the wc-search.xml configuration file to include that information.

To change/add the value of an existing property in the WebSphere Commerce search configuration file, you have to create a customized version of the search configuration file and add a profile to that file. Follow the steps below to customize the search profiles:

  1. Add the search profiles:

    Open the file WCDE-INSTALL/workspace/Search/xml/config/com.ibm.commerce.catalog-ext/wc-search.xml in the HCL Commerce Workspace and copy all the config:profile definitions with a name starting with CoreMedia to the corresponding file in your HCL RAD workspace.

  2. You have to extend the existing REST API search handlers to provide the additional information now exposed by the search profiles.

    Change the search profile for existing search based REST handlers by creating/updating the file WCDE-INSTALL/workspace/Search-Rest/WebContent/WEB-INF/config/com.ibm.commerce.rest-ext/wc-rest-resourceconfig.xml with the corresponding changes from the HCL Commerce Workspace archive.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.