Params Mapping
paramsMapping
This option accepts key/value pairs in order to define the URL parameters.
Options
The format of the options applies for each available fields and it looks like this:
const config = {
...
paramsMapping = {
'keyword': 'search_query',
'sort': 'search_sort',
'pg': 'search_page',
'mpp': 'search_mpp',
'lpurl': 'search_lpurl',
'searchWithin': 'search_within',
'indexName': 'search_index'
},
...
};
var widget = HawksearchVue.createWidget(component, { config: config});
HawksearchVue.initialSearch(widget);