Hello, i have an URL https://website.com/search/query_string and I need some advice on how to get “query_string” to be searched for by algolia instead of “query =”. Thank you
Hi there! What is your implementation of Algolia? Are you using one of our front-end library (for vanilla js, vue or react?) or another implementation (like shopify or magento?).
Hi, I’m using InstantSearch.js
The implementation may vary based on the technical stack of your application (jQuery, React, etc.) but the philosophie will always be the same: whether you’re using
window.location directly or through a library (like
react-router for example), you can use the information inside this location object (provided by the browser) to extract the query and pass it to your algolia query.
I hope that makes sense