typesense / typesense-instantsearch-adapter

A JS adapter library to build rich search interfaces with Typesense and InstantSearch.js
MIT License
403 stars 63 forks source link

support extra query parameters in algolia search params. #126

Open ribrdb opened 2 years ago

ribrdb commented 2 years ago

Description

The algolia helper supports setting arbitrary query params (using setQueryParameter). However the adapter ignores these. It would be nice if the adapter could take extra params from here and pass them along to typesense. I am trying to build a widget that is managed by the instantsearch state to configure the query_by param. I can directly modify the typesense client, but then the instantsearch routing state doesn't update.

jasonbosco commented 2 years ago

Could you share a small sample project I can run locally that uses setQueryParameter? I can then use that to add support for it in the adapter.

If it's easier, feel free to fork this demo project to use setQueryParameter: https://github.com/typesense/typesense-instantsearch-demo

jhotujec commented 1 year ago

+1