Connector for HCL Commerce Manual / Version 2307
Table Of Contents
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.
The search customization can be found in the Code/search-app/search-config-ext.jar
of the search server archive file.
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:
Add the search profiles:
Open the file
WCDE-INSTALL/workspace/search-config-ext/src/runtime/config/com.ibm.commerce.search/wc-search.xml
in the HCL Commerce Workspace and copy all theconfig:profile
definitions with a name starting with CoreMedia to the corresponding file in your HCL RAD workspace.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-config-ext/src/runtime/config/com.ibm.commerce.rest/wc-rest-resourceconfig.xml
with the corresponding changes from the HCL Commerce Workspace archive.