Instructions to use the service to retrieve different query signals data. This will involve next queries and related tags in the same endpoint.
You can search using the querySignals function.
querySignals (term, options, callback) |
Parameter | Description | Data Type | Mandatory |
---|---|---|---|
terms | The query typed by the user | String | Yes |
options | Object that may contain information about filters and other required data for example: scope | Object | No |
callback | Function that will be executed after sending data | Function | No |
Notes:
|
var options = { lang:'en', scope:'desktop' } empathySearch.querySignals('shirt', options, function(data){ //the data object will contain top clicked alert('test'); }); |
{ "nextQueries": [ { "query": "jeans" }, { "query": "blouse" } ], "relatedTags": [ { "tag": "white", "query": "white shirt" }, { "tag": "long sleeve", "query": "long sleeve shirt" }, { "tag": "striped", "query": "shirt striped" } ] } |