I am trying to have multiple searchfields. This is what I am trying but it results in "cloned" input fields. Is this possible to have multiple search boxes which would work independent of each?
search.addWidgets([
instantsearch.widgets.searchBox({
container: '#searchbox',
placeholder: 'Regular Searchbox',
autofocus: true,
searchAsYouType: false,
showReset: true,
showSubmit: true
}),
instantsearch.widgets.searchBox({
container: '#searchbox-2',
placeholder: 'Searchbox to be integrated with AutoComplete',
searchAsYouType: true,
})
]);
Any help of alternative solutions on this would be highly appreciated.
Thanks!