Comments (3)
For anyone landing here with the same problem, I am currently using the following workaround
const fuse = new Fuse(items, {
...yourOptions,
useExtendedSearch: true,
getFn(...args) {
return Fuse.config.getFn(...args) || "\uFFFF";
}
});
This will return the unicode non-character FFFF
as a fallback for nullish values, preventing them to be excluded from the result set. This character is very unlikely to be typed inside a search string so it is working fine for me at the moment but still it would be nice to see this fixed. I was even thinking of making a PR but based on what I've seen it looks like external PR's and issues get very little consideration these times so I'm not really motivated in doing one which could potentially remain ignored. (This doesn't mean to be a critique to the author)
from fuse.
I am facing this issue as well but the suggested workaround does not work in my case. I believe that this is due to searching in a nested property where the parent is undefined. I am using a fork so I could fix it locally, can you @asnaeb give any hints on what causes the issue? Thanks!
from fuse.
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
from fuse.
Related Issues (20)
- Threshold isn't workiing as expected HOT 1
- Not matching obvious matches? HOT 3
- Usage in deno HOT 2
- Fuse is not returning an exact match HOT 1
- Change defaults to `ignoreLocation: true` and `ignoreFieldNorm: true` HOT 2
- Recommended way to boost based on a different field HOT 1
- Add information about not commiting dist files HOT 2
- Exact matches on arrays of objects result in score higher than 1 HOT 5
- What is Breaking Changes "Extension Changed" in the 7.0.0 release? HOT 2
- Unclear how to do non-fuzzy search on a per-word basis HOT 4
- Fuzzy matching not working for typos HOT 4
- Fuzzy matching not working proper HOT 1
- Returned indexes are incorrect HOT 1
- All indices return with threshold = 0 aren't a perfect match HOT 1
- minMatchCharLength not working as expected HOT 1
- Support escaping the OR operator (`|`) when extended search is enabled HOT 1
- 7.0.0 Breaking Change Documentation Unclear HOT 1
- Consider documention the TypeScript types as well
- Fuse.js demo produces unexpected results HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuse.