Topic
No replies
balusethuraman
balusethuraman
117 Posts
ACCEPTED ANSWER

Pinned topic RestFul Services-Find by Search Term

‏2012-11-19T13:28:02Z |
Hi,
We need to customize findbySearchTerm rest service. We need to pass multiple values for a search term (like lamp,sofa,table,etc.)is our requirement.

http://localhost/wcs/resources/store/11151/productview/bySearchTerm/lamp?responseFormat=xml

We want to know how findbySearchTerm works exactly.We searched and found the Xpath expression for findbySearchTerm from get-data-config.xml as,

{_wcf.ap=IBM_Store_CatalogEntrySearch;_wcf.search.profile=IBM_findCatalogEntryByName;_wcf.search.category=10002;_wcf.search.type=0;_wcf.search.sort='$orderBy$';_wcf.search.source=0;_wcf.search.facet='$facet$';_wcf.search.exclude.facet='$filterFacet$';_wcf.search.meta='$metaData$'}/CatalogNavigationView

The Xpath key for the Xpath expression is "/CatalogNavigationView" which doesn't contain any identifer. In this case, the xpath key will be mapped to CatalogNavigationView.xsd is what our assumption. If our assumption is right then can we create new xsd file and map that with xpath key??