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 CoreMedia DXP 8.
CoreMedia DXP 8 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 extending the wc-search.xml
configuration file to include the new search profiles definition that extends the existing profiles.
To change/add the value of an existing property in the WebSphere Commerce search configuration file, you have to create a customized version of this file containing only the changed properties. Follow the steps below to extend the search profiles:
Add search profiles:
Open the file
WCDE-INSTALL/workspace/Search/xml/config/com.ibm.commerce.catalog-ext/wc-search.xml
in the CoreMedia LiveContext 2.0 WebSphere Commerce Project Workspace and copy all theconfig:profile
definitions with a name starting with CoreMedia to the corresponding file in your WCS 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-Rest/WebContent/WEB-INF/config/com.ibm.commerce.rest-ext/wc-rest-resourceconfig.xml
with the corresponding changes from the CoreMedia LiveContext 2.0 WebSphere Commerce Project Workspace archive.