Autocomplete URL

autocompleteUrl

This option contains the Hawksearch search autocomplete API URL to which search requests are send.

Options

  • default value is string - '/api/autocomplete'

  • when the configuration is using the default value apiUrl is used for basis to create search URL

dev 'https://searchapi-dev.hawksearch.net/api/autocomplete' :

const config = { ... autocompleteUrl: 'https://searchapi-dev.hawksearch.net/api/autocomplete', ... }; var widget = HawksearchVue.createWidget(component, { config: config}); HawksearchVue.initialSearch(widget);

test 'https://searchapi-test.hawksearch.net/api/autocomplete' :

const config = { ... autocompleteUrl: 'https://searchapi-test.hawksearch.net/api/autocomplete', ... }; var widget = HawksearchVue.createWidget(component, { config: config}); HawksearchVue.initialSearch(widget);

prod 'https://searchapi.hawksearch.net/api/autocomplete' :

const config = { ... autocompleteUrl: 'https://searchapi.hawksearch.net/api/autocomplete', ... }; var widget = HawksearchVue.createWidget(component, { config: config}); HawksearchVue.initialSearch(widget);

Usage

Check Hawksearch v4.0 - Search API article for more information about Search API

Â