search_term_association

This class has the ability to return information about Search Term associations ie Landing pages

Handler Class:

com.ibm.commerce.rest.search.handler.SearchTermAssociationHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/search_term_association?q={q}Run a search term association query. See individual queries for details.
GET/store/{storeId}/search_term_association?q=byAssociationTypeFinds search term associations by association type

Method Details

GET /store/{storeId}/search_term_association?q={q}

Run a search term association query. See individual queries for details.

Handler Method:

querySearchTermAssociation

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

search_term_association-IBM_Admin_Summary

GET /store/{storeId}/search_term_association?q=byAssociationType

Finds search term associations by association type

Handler Method:

byAssociationType

Secure Call Mandatory:

false

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
associationTypeThe Association type eg (SearchForInstead,AlsoSearchFor,Synonym,LandingPageURL) can also be represented using values 1-4querystringtruefalse
profileNameProfile name. Profiles determine the subset of data to be returned by a query.querystringfalsefalse
pageSizePage size. Used to limit the amount of data returned by a query. Valid values include positive integers of 1 and above. The "pageNumber" must be specified for paging to work.queryintegerfalsefalse
pageNumberPage number, starting at 1. Valid values include positive integers of 1 and above. The "pageSize" must be specified for paging to work.queryintegerfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

search_term_association-IBM_Admin_Summary


Example

Request:
GET /wcs/resources/store/10001/search_term_association?q=byAssociationType&associationType=LandingPageURL&profileName=IBM_Admin_Summary&responseFormat=json&pageSize=4&pageNumber=1
HTTP Status Code:

200

Response:
{
	"recordSetComplete": true,
	"recordSetCount": 5,
	"recordSetStartNumber": 0,
	"recordSetTotal": 5,
	"resourceId": "https:\/\/localhost:443\/wcs\/resources\/store\/10001\/search_term_association?q=byAssociationType&associationType=LandingPageURL&profileName=IBM_Admin_Summary&responseFormat=json&pageSize=4&pageNumber=1",
	"resourceName": "search_term_association",
	"resultList": [
		{
			"associationTerms": "GenericStaticContentPageLayoutView?pageName=SiteMapPage",
			"associationType": "LandingPageURL",
			"languageIdentifier": "-1",
			"searchTermAssociationId": "10001",
			"searchTerms": "map",
			"storeId": "10001"
		},
		{
			"associationTerms": "GenericStaticContentPageLayoutView?pageName=SiteMapPage",
			"associationType": "LandingPageURL",
			"languageIdentifier": "-1",
			"searchTermAssociationId": "10002",
			"searchTerms": "help",
			"storeId": "10001"
		},
		{
			"associationTerms": "StoreView",
			"associationType": "LandingPageURL",
			"languageIdentifier": "-1",
			"searchTermAssociationId": "10003",
			"searchTerms": "home",
			"storeId": "10001"
		},
		{
			"associationTerms": "GenericStaticContentPageLayoutView?pageName=PrivacyPolicyPage",
			"associationType": "LandingPageURL",
			"languageIdentifier": "-1",
			"searchTermAssociationId": "10004",
			"searchTerms": "privacy",
			"storeId": "10001"
		},
		{
			"associationTerms": "GenericStaticContentPageLayoutView?pageName=ContactUsPage",
			"associationType": "LandingPageURL",
			"languageIdentifier": "-1",
			"searchTermAssociationId": "10005",
			"searchTerms": "contact",
			"storeId": "10001"
		}
	]
}

Data Type Details

search_term_association-IBM_Admin_Summary

Properties:
NameData TypeRequired
recordSetTotalstringfalse
recordSetCompletestringfalse
recordSetStartNumberstringfalse
resultListsearch_term_association-IBM_Admin_Summary_item arrayfalse
recordSetCountstringfalse

search_term_association-IBM_Admin_Summary_item

Properties:
NameData TypeRequired
languageIdentifierstringfalse
associationTermsstringfalse
searchTermAssociationIdstringfalse
associationTypestringfalse
storeIdstringfalse
searchTermsstringfalse