Instructions to use the search service to retrieve just top clicked without adding a term (general top clicked).
You can search using the generalTopclicked function.
generalTopclicked (start, rows, options, callback) |
Parameter | Description | Data Type | Mandatory |
---|---|---|---|
start | This parameter is used to paginate results from a query | Integer | No |
rows | This parameter is used to paginate results from a query | Integer | No |
options | Object that must contain information about the language used: E.g { lang = en } Also may contain information about filters and other required data for example: scope | Object | Yes |
callback | Function that will be executed after sending data | Function | No |
Notes:
|
var options = { lang:'en', scope:'desktop' } empathySearch.topclicked(1, 10, options, function(data){ //the data object will contain top clicked alert('test'); }); |