Closed 01binary closed 2 years ago
Have you tried changing minMatchCharLength
? Part of the problem is that the pattern "react" closely matches other words in the list.
Try using the following options
const options = {
minMatchCharLength: 3,
ignoreLocation: true,
keys: ['title', 'summary']
}
Thank you for the response! I see that Fuse isn't designed for precise matching, so I went with a hybrid approach. Keywords like react
are searched using more basic string matching and tokenizing, and raw text is searched with Fuse (with the same keywords removed).
Hi, thanks for this library! I read the Scoring Theory and turned on
ignoreLocation
but I am still confused about the matches:Of course I could sort and filter by match score (let's say cut off below
.6
or.7
and sort descending) but I don't know how to compensate for completely irrelevant results :(Steps to Reproduce
When searching an online resume for "react", the program returns applicant's experiences that make no mention of react
When searching an online resume for "react", the program should return applicant's experiences where they mention they worked with React library