typesense / typesense-instantsearch-adapter

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

Switching presets once user starts typing #195

Open zasuh opened 5 months ago

zasuh commented 5 months ago

Description

Is there a way without impacting performance to dynamically switch presets inside TypesenseInstantSearchAdapter? I would like to switch presets when a user starts typing for instance.

jasonbosco commented 5 months ago

You could use the updateConfiguration() method of the adapter: https://github.com/typesense/typesense-instantsearch-adapter/blob/def91b80355679c048f81d254aab4e770cb95e07/src/TypesenseInstantsearchAdapter.js#L78C3-L78C22