typesense-instantsearch-adapter icon indicating copy to clipboard operation
typesense-instantsearch-adapter copied to clipboard

Switching presets once user starts typing

Open zasuh opened this issue 1 year ago • 1 comments

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.

zasuh avatar Feb 06 '24 11:02 zasuh

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

jasonbosco avatar Feb 06 '24 20:02 jasonbosco