Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Hi Steve, You are correct, as per infocenter information, searchProfile attribute within wcf:rest tag suppose to work and custom search profile will take preference on default search profile. It does look like OOB RESTTag class is missing setter method for attribute searchProfile. ]: com.ibm.ws.jsp.JspCoreException: JSPG0218E: Error failed to locate setter method for attribute searchProfile in tag class com.ibm.commerce.foundation.internal.client.taglib.RESTTag Other solution that you can try to update the configuration file(Search-Rest\WebContent\WEBINF\config\com.ibm.commerce.rest\wc-rest-resourceconfig.xml) with custom search profile entry. OOB configuration for get product by unique ID: <GetUri uri="store/{storeId}/productview/byId/{productId}" description="Get product by unique ID" searchProfile="IBM_findProductByIds_Details,IBM_findProductByIdsWithAttributesAndAttachments,IBM_findProduct ByIds_Summary,IBM_findProductByIds_Summary_WithNoEntitlementCheck,IBM_Admin_findProductByIds"/> Custom configuration : <GetUri uri="store/{storeId}/productview/byId/{productId}" description="Get product by unique ID" searchProfile="CUSTOM_findProductByIds_Details, IBM_findProductByIds_Details,IBM_findProductByIdsWithAttribu tesAndAttachments,IBM_findProductByIds_Summary,IBM_findProductByIds_Summary_WithNoEntitlementCheck,IB M_Admin_findProductByIds"/> I don't have custom search profile created, so i am getting below exception but i believe if you have custom search profile ready, it should work. Caused by: com.ibm.commerce.foundation.server.services.dataaccess.exception.ConfigurationException: CWXFS3001E: Search profile name "Custom_findProductByIds_Details" is not valid. at com.ibm.commerce.foundation.internal.server.services.search.expression.solr.SolrSearchProfileNameValidator.invok e(SolrSearchProfileNameValidator.java:89) at [12/10/14 12:27:30:607 EST] 00000036 ExtendedInfo I CWXFR9010I: Extended information : [URL=http://localhost/webapp/wcs/stores/servlet/en/aurora/apparel/men/shirts/luigi-valenti-urban-shirt] [parameters=null] [userId=-1002] [12/10/14 12:27:30:607 EST] 00000036 LoggingHelper E /GenericJSPPageError.jsp - java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:80/search/resources/store/10001/productview/byId/11710?searchProfile=Custom_findProduc tByIds_Summary¤cy=USD&catalogId=10052&responseFormat=json&langId=-1&contractId=10001 javax.servlet.jsp.JspException: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:80/search/resources/store/10001/productview/byId/11710?searchProfile=Custom_findProduc tByIds_Summary¤cy=USD&catalogId=10052&responseFormat=json&langId=-1&contractId=10001 at com.ibm.commerce.foundation.internal.client.taglib.RESTTag.myExecute(RESTTag.java:1238) Thanks, Satyabir