Feature Pack 5Feature Pack 6Feature Pack 4

Get matching products for a given search term

The following example shows how to get matching products for a given search term.

Request


GET /wcs/resources/store/11051/productview/bySearchTerm/sofa HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

Response


HTTP/1.1 200 OK
Content-Type: application/json

{
	"CatalogEntryView": [
		{
			"Price": [
				{
					"priceDescription": "I",
					"priceUsage": "Offer",
					"priceValue": "1099.95"
				}
			],
			"buyable": "true",
			"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_160x160\/FUFA_03.jpg",
			"longDescription": "This sofa offers clean straight lines and superb support. Converts to a bed with a double-size mattress. Measures 90\" in length, 37\" in depth, and 38\" in height.",
			"name": "Classic Fabric Sofa",
			"parentCategoryID": "10360",
			"partNumber": "FUFA-03",
			"productType": "ProductBean",
			"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byId\/11905",
			"shortDescription": "This sofa offers clean straight lines and superb support.",
			"storeID": "11051",
			"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_70x70\/FUFA_03.jpg",
			"uniqueID": "11905"
		},
		{
			"Price": [
				{
					"priceDescription": "I",
					"priceUsage": "Offer",
					"priceValue": "1499.99"
				}
			],
			"buyable": "true",
			"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_160x160\/FULE_01.jpg",
			"longDescription": "This leather sofa offers daring styling and superb support. Seats three comfortably with innovative arm rest design. Measures 90\" in length, 37\" in depth, and 38\" in height.",
			"name": "Wing Tip Leather Sofa",
			"parentCategoryID": "10361",
			"partNumber": "FULE-01",
			"productType": "ProductBean",
			"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byId\/11907",
			"shortDescription": "This leather sofa offers daring styling and superb support.",
			"storeID": "11051",
			"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_70x70\/FULE_01.jpg",
			"uniqueID": "11907"
		},
		{
			"Price": [
				{
					"priceDescription": "I",
					"priceUsage": "Offer",
					"priceValue": "1299.95"
				}
			],
			"buyable": "true",
			"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_160x160\/FULE_02.jpg",
			"longDescription": "This leather sofa offers clean straight lines and superb support. Seats 3 or 4 comfortably. Without arm rests, this sofa augments the mood of an open concept room. Measures 90\" in length, 37\" in depth, and 38\" in height.",
			"name": "Purple Leather Sofa",
			"parentCategoryID": "10361",
			"partNumber": "FULE-02",
			"productType": "ProductBean",
			"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byId\/11909",
			"shortDescription": "This leather sofa offers clean straight lines and superb support.",
			"storeID": "11051",
			"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_70x70\/FULE_02.jpg",
			"uniqueID": "11909"
		},
		{
			"Price": [
				{
					"priceDescription": "I",
					"priceUsage": "Offer",
					"priceValue": "699.99"
				}
			],
			"buyable": "true",
			"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_160x160\/FUFA_01.jpg",
			"longDescription": "This sofa offers plush comfortable seating and bold coloring. It has roll arms, lovely wooden feet, and matching fabric pillows. Measures 90\" in length, 37\" in depth, and 38\" in height.",
			"name": "Red Fabric Roll Arm Sofa",
			"parentCategoryID": "10360",
			"partNumber": "FUFA-01",
			"productType": "ProductBean",
			"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byId\/11901",
			"shortDescription": "This sofa offers plush comfortable seating and bold coloring.",
			"storeID": "11051",
			"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_70x70\/FUFA_01.jpg",
			"uniqueID": "11901"
		},
		{
			"Price": [
				{
					"priceDescription": "I",
					"priceUsage": "Offer",
					"priceValue": "679.99"
				}
			],
			"buyable": "true",
			"fullImage": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_160x160\/FUFA_02.jpg",
			"longDescription": "This sofa offers plush comfortable seating and clean white coloring. It has roll arms, subtle striping, and matching fabric pillows. Measures 90\" in length, 37\" in depth, and 38\" in height.",
			"name": "White Fabric Roll Arm Sofa",
			"parentCategoryID": "10360",
			"partNumber": "FUFA-02",
			"productType": "ProductBean",
			"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/byId\/11903",
			"shortDescription": "This sofa offers plush comfortable seating and clean white coloring.",
			"storeID": "11051",
			"thumbnail": "\/wcsstore\/Madisons2\/images\/catalog\/furniture\/furniture_70x70\/FUFA_02.jpg",
			"uniqueID": "11903"
		}
	],
	"FacetView": [
		{
			"Entry": [
				{
					"count": "5",
					"entryValue": "10351",
					"label": "Furniture"
				},
				{
					"count": "3",
					"entryValue": "10360",
					"label": "Fabric Sofas"
				},
				{
					"count": "2",
					"entryValue": "10361",
					"label": "Leather Sofas"
				}
			],
			"name": "ParentCatalogGroup",
			"value": "parentCatgroup_id_search"
		},
		{
			"Entry": [
				{
					"count": "5",
					"entryValue": "price_USD:({500 *})",
					"label": "({500 *})"
				},
				{
					"count": "0",
					"entryValue": "price_USD:({100 200} 200)",
					"label": "({100 200} 200)"
				},
				{
					"count": "0",
					"entryValue": "price_USD:({* 100} 100)",
					"label": "({* 100} 100)"
				},
				{
					"count": "0",
					"entryValue": "price_USD:({200 300} 300)",
					"label": "({200 300} 300)"
				},
				{
					"count": "0",
					"entryValue": "price_USD:({300 400} 400)",
					"label": "({300 400} 400)"
				},
				{
					"count": "0",
					"entryValue": "price_USD:({400 500} 500)",
					"label": "({400 500} 500)"
				}
			],
			"value": "price_USD"
		}
	],
	"MetaData": [
		{
			"metaData": "1"
		}
	],
	"recordSetComplete": "true",
	"recordSetCount": "5",
	"recordSetStartNumber": "0",
	"recordSetTotal": "5",
	"resourceId": "http:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/11051\/productview\/bySearchTerm\/sofa",
	"resourceName": "productview"
}