#community-help

Instantsearch DynamicWidgets Issue and Workaround

TLDR Jeff asked Jason for a workaround for a crete-instantsearch-app issue with dynamic widgets. Jason is yet to find a solution. Alex suggested a less dynamic mode as a quicker implementation.

Powered by Struct AI
+11
May 01, 2022 (17 months ago)
Jeff
Photo of md5-a7605b093448e06efb0a1c150153cad6
Jeff
05:52 PM
Jason you mentioned here an issue with crete-instantsearch-app https://typesense-community.slack.com/archives/C01P749MET0/p1646357988719909?thread_ts=1646357125.367679&cid=C01P749MET0

is there a workaround for instantsearch dynamicWidgets and the facet: * error? (i.e. is there a way to use dynamic widgets with typesense?)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:54 PM
Jeff I haven't looked into how dynamic widgets work in instantsearch yet. I know they doesn't work out of the box with Typesense. Need to dig into it further
+11
May 05, 2022 (16 months ago)
Alex
Photo of md5-dc362c4060d01d7ad6c9211157de3d69
Alex
03:14 PM
I believe there is a couple modes dynamicWidgets can work in. default is all facets get prefetched data ( I think 20 documents or so) star * is passed to indicate that. And that definitely fails with TS, but possibly the other mode which is less dynamic where we explicitly indicate the facets could be a quicker implementation for TS.