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