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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown refinementlist crashes on search #5543

Closed
1 task done
stephanemartinw opened this issue Mar 14, 2023 · 1 comment
Closed
1 task done

Dropdown refinementlist crashes on search #5543

stephanemartinw opened this issue Mar 14, 2023 · 1 comment
Labels
triage Issues to be categorized by the team

Comments

@stephanemartinw
Copy link

馃悰 Current behavior

When searching in a dropdown refinementlist, code crashes into following error:

Capture d鈥檈虂cran 2023-03-14 a虁 12 21 48

馃攳 Steps to reproduce

Go to the attached codesandbox url, start a search with 'test' in the searchbox.
Then click on the filter button and inside the dropdown, search for a value: 'bio'

Live reproduction

https://codesandbox.io/s/keen-lake-pp46dw

馃挱 Expected behavior

No error

Package version

latest instantsearch.js 4.52.0 and algoliasearch 4.15.0

Operating system

macOS

Browser

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct
@stephanemartinw stephanemartinw added the triage Issues to be categorized by the team label Mar 14, 2023
@Haroenv
Copy link
Contributor

Haroenv commented Mar 14, 2023

Not sure why the error is not properly shown (possibly algolia/algoliasearch-client-javascript#1444), but this is because you're attribute isn't set up for searching in the index configuration:

{
    "message": "Cannot search in `culinary_categories` attribute, you need to add `searchable(culinary_categories)` to attributesForFaceting.",
    "status": 400
}

@Haroenv Haroenv closed this as completed Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues to be categorized by the team
Projects
None yet
Development

No branches or pull requests

2 participants