Feature Pack 8

Enabling interim fix JR52486

Interim fix JR52486 provides a new defaultSearchProfile flag that you can use to set your customized search profile, com.ibm.commerce.rest-ext/wc-rest-resourceconfig.xml, as the default search profile for Search-based REST services.

Since you might not want all REST services to use the customized search profile, you need to manually add the defaultSearchProfile flag to the appropriate GetUri tag.
Note: Ensure that you know which profile you want to use for your services as this defaultSearchProfile flag can potentially break existing applications if you do not specify the correct profile.

Before you begin

Install the cumulative interim fix for Feature Pack 8, JR59483.fep.

Procedure

  1. Open the following file:
    • WC_profiledir\installedApps\cell_name\instance_name.ear\Search-Rest\WebContent\WEB-INF\config\com.ibm.commerce.rest-ext\wc-rest-resourceconfig.xml
    • WebSphere Commerce Developerworkspace_dir\Search-Rest\WebContent\WEB-INF\config\com.ibm.commerce.rest-ext\wc-rest-resourceconfig.xml
  2. Find the REST resource that you want to set to use the custom search profile.
  3. Add the defaultSearchProfile attribute and set the value to true.
    For example:
    <GetUri uri="store/{storeId}/productview/byId/{productId}" 
         description="Get product by unique ID" 
         accessProfile="IBM_Store_CatalogEntrySearch" defaultSearchProfile="true" 
         searchProfile="IBM_findCatalogEntryAllExtension"/>