We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Number arrays not finding results.
6.6.2
[ { "title": "Some title", "years": [2022, 2023] } ] const options = { includeScore: true, keys: ['title', 'years'] } const fuse = new Fuse(list, options) const result = fuse.search('2022')
Won't find the entry.
Changing the array from numbers to string it will work: "years": [2022, 2023] ==> "years": ['2022', '2023']
"years": [2022, 2023]
"years": ['2022', '2023']
But I need to actual numbers.
Note that this also works:
[ { "title": "Some title", "years": [ { "year": 2022 }, { "year": 2023 } ] } ] const options = { includeScore: true, keys: ['title', 'years.year'] } const fuse = new Fuse(list, options) const result = fuse.search('2022')
In that case the number is matched.
So it only happend for number arrays.
Number arrays to be supported.
No response
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days
Sorry, something went wrong.
Please don not close, this is an actual issue.
No branches or pull requests
Is there an existing issue for this?
Description of the bug
Number arrays not finding results.
The Fuse.js version where this bug is happening.
6.6.2
Is this a regression?
Which version did this behavior use to work in?
6.6.2
Steps To Reproduce
Won't find the entry.
Changing the array from numbers to string it will work:
"years": [2022, 2023]
==>"years": ['2022', '2023']
But I need to actual numbers.
Note that this also works:
In that case the number is matched.
So it only happend for number arrays.
Expected behavior
Number arrays to be supported.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: