You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has indeed always been the case, facets retrieved from the SearchResults class are only those that are manually set, as they require a second query if anything is refined.
You can however read the facets (which would be conjunctive) from rawResults.
🐛 Current behavior
When using the wildcard property to retrieve all facets
*
, the facets are not being returned by the useInstantSearch() hook.When using the js library search function, you can retrieve all facets using wildcard. see codesandbox for repro.
This is also the same behavior on v6 using connectStateResults:
https://codesandbox.io/p/sandbox/algolia-facets-v6-5hn9rn?file=%2Fsrc%2FApp.tsx
🔍 Steps to reproduce
Live reproduction
https://codesandbox.io/p/sandbox/algolia-facets-issue-9xpw2d?file=%2Fsrc%2FApp.tsx
💭 Expected behavior
Expecting to receive all facets available when using the wildcard property just like when you can retrieve them using the js client.
Package version
"algoliasearch": "4.23.2",
"instantsearch.js": "4.68.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-instantsearch": "7.8.1"
Operating system
macOS 12.7
Browser
Chrome Version 124.0.6367.208
Code of Conduct
The text was updated successfully, but these errors were encountered: