Javascript Search Library - 1.4 : Browse
Overview
Instructions to use the search endpoint to retrieve results and links.
Step-by-step guide
You can search using the search function.
browseSearch (categoryId, start, rows, options, callback)
Parameters
Parameter | Description | Data Type | Mandatory |
|---|---|---|---|
categoryId | This parameter is used to make the query |
| Yes |
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 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:
| |||
Code samples
var options = {
lang:'en',
scope:'desktop'
}
empathySearch.browseSearch('term', 1, 10, options, function(data){
//the data object will contain search results and links
alert('test');
});
Related articles
Filter by label
There are no items with the selected labels at this time.