Add custom search profile in wc-rest-resourceconfig.xml for a rest resource
1. Create folder com.ibm.commerce.rest-ext in /Search-Rest/WebContent/WEB-INF/config/
2. Create wc-rest-resourceconfig.xml file in folder com.ibm.commerce.rest-ext
3. Add Resource as below
<ResourceConfig>
<Resource name="sitecontent">
<GetUri uri="store/{storeId}/sitecontent/keywordSuggestionsByTerm/{term}"
description="Get keyword suggestions."
defaultSearchProfile="true" searchProfile="X_IBM_findNavigationSuggestion_Keywords"/>
</Resource>
</ResourceConfig>
4. Make sure that defaultSearchProfile attribute is set as true if you want to make X_IBM_findNavigationSuggestion_Keywords as default searchProfile for this rest resource
5. If you don't add defaultSearchProfile as true then WCS search will use searchProfile for original rest resource defined in wc-rest-resourceconfig.xml under com.ibm.commerce.rest folder
That's amazing to read blog about commerce xml.
ReplyDeleteCommerce XML
The good thing it's FREE, yup no fees, at the same time, that's the bad news, and it might happened that you finish the job, and not get paid. That cannot happened when using escrow systems. Webdesign
ReplyDelete