Search URL
searchUrl
This option contains the Hawksearch search API URL to which search requests are send.
Options
default value is string -
'/api/v2/search'
when the configuration is using the default value apiUrl is used for basis to create search URL
dev 'https://searchapi-dev.hawksearch.net/api/v2/search/'
const config = {
...
searchUrl: 'https://searchapi-dev.hawksearch.net/api/v2/search/',
...
};
var widget = HawksearchVue.createWidget(component, { config: config});
HawksearchVue.initialSearch(widget);
test 'https://searchapi-test.hawksearch.net/api/v2/search'
:
const config = {
...
autocompleteUrl: 'https://searchapi-test.hawksearch.net/api/v2/search',
...
};
var widget = HawksearchVue.createWidget(component, { config: config});
HawksearchVue.initialSearch(widget);
prod 'https://searchapi.hawksearch.net/api/v2/search'
:
const config = {
...
autocompleteUrl: 'https://searchapi.hawksearch.net/api/v2/searche',
...
};
var widget = HawksearchVue.createWidget(component, { config: config});
HawksearchVue.initialSearch(widget);
Check Hawksearch v4.0 - Search API article for more information about Search API