Hi All!
I am working with code example - https://github.com/algolia/doc-code-samples/blob/master/instantsearch.js/query-suggestions/src/app.js
Our previous version included a searchbox, now we have added query suggestions.
This example works good but the autocomplete doesn’t update the URL.
I have added routing:true to the suggestions part to fix this, however this updates the URL but overwrites previous values set by the facets.
.
const suggestions = instantsearch({
indexName: indexName_suggestions,
searchClient,
routing: true
});
const search = instantsearch({
indexName: indexName,
searchClient: searchClient,
routing: {
stateMapping: instantsearch.stateMappings.singleIndex(indexName)
},
attributesToHighlight: ["description"]
});
Is there a way to combine the two? Thanks so much!