-
I'm kinda confused about what threshold is supposed to do. The results always include items with scores higher than the threshold. I thought it was supposed to limit to results with a score <= the threshold. Try pasting this into const options = {
// isCaseSensitive: false,
includeScore: true,
// shouldSort: true,
// includeMatches: false,
// findAllMatches: false,
// minMatchCharLength: 1,
// location: 0,
threshold: 0.3,
// distance: 100,
// useExtendedSearch: false,
// ignoreLocation: false,
// ignoreFieldNorm: false,
// fieldNormWeight: 1,
keys: [
"title",
"author.firstName"
]
};
const fuse = new Fuse(list, options);
// Change the pattern
const pattern = "s"
return fuse.search(pattern) The results include scores up to .47 |
Beta Was this translation helpful? Give feedback.
Answered by
krisk
May 6, 2022
Replies: 1 comment
-
Take a look at the scoring theory to understand how the score is calculated 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
krisk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take a look at the scoring theory to understand how the score is calculated 😄