...
...
Overview
Instructions to use the service to retrieve different query signals data. This will involve next queries and related tags in the same endpoint next queries that were made by other users when searching the initial one.
Step-by-step guide
You can search using the nextQueries function.
Code Block |
---|
|
nextQueries (term, options, callback) |
Parameters
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: - Additional parameters should be included into the options object. The list of parameters that can be included into the options parameter can be checked visiting the Search section of SEARCH REST API
- To view the format of the JSON result, visit also the Search section of SEARCH REST API
|
Code samples
Code Block |
---|
|
var options = {
lang:'en',
scope:'desktop'
}
empathySearch.nextQueries('shirt', options, function(data){
//the data object will contain top clicked
alert('test');
}); |
Example of response
Code Block |
---|
|
[
{
"query": "jeans"
},
{
"query": "blouse"
}
] |
Related articles
Filter by label (Content by label) |
---|
cql | label = "empathy-search-api-javascript" and space = currentSpace ( ) |
---|
|