Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for dynamicWidgets #106

Closed
thinq-spz opened this issue Apr 12, 2022 · 4 comments
Closed

Support for dynamicWidgets #106

thinq-spz opened this issue Apr 12, 2022 · 4 comments

Comments

@thinq-spz
Copy link

Description

TS adapter does not support dynamic widgets which are supposed to reduce network traffic.

Steps to reproduce

Example from
https://www.algolia.com/doc/api-reference/widgets/dynamic-facets/js/
Produces the following error:

TypesenseInstantsearchAdapter.js:41
Error: 404 - Could not find a facet field named * in the schema.
at TypesenseInstantsearchAdapter1._validateTypesenseResult (TypesenseInstantsearchAdapter.js:81:13)
at TypesenseInstantsearchAdapter.js:28:14
at Array.map ()
at TypesenseInstantsearchAdapter1._callee$ (TypesenseInstantsearchAdapter.js:27:58)
at tryCatch (runtime.js:63:40)
at Generator.invoke [as _invoke] (runtime.js:294:22)
at Generator.next (runtime.js:119:21)
at asyncGeneratorStep (asyncToGenerator.js:3:24)
at _next (asyncToGenerator.js:25:9)

@ElNelyo
Copy link

ElNelyo commented May 3, 2022

<DynamicWidgets facets={[`*`]} fallbackComponent={CustomWidget} />
Same error here

@jasonbosco
Copy link
Member

jasonbosco commented Oct 20, 2022

We need to add support for this on the Typesense Server side first: typesense/typesense#612

@pixelkoduje
Copy link

I see that instead of the "*" error, it shows the error 'Field name is not marked as a guy in the schema.'
I using const data = useDynamicWidgets({ guys: ['*'] }) in docker version 0.25.0.rc9
It's not finished, do I need to do something else to make it work?
I'm using react-instantsearch-hooks-web

@jasonbosco
Copy link
Member

This is now available. Here's how to use it: #150 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants