-
-
Notifications
You must be signed in to change notification settings - Fork 782
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Separate fuzziness score from sort score #397
Comments
cc: @acnebs @MadsMadsDk @laurentiustroia |
Fair enough that the score is getting a little bit more sophisticated. For my purposes, an option like I generally preferred the score method though, as it was fairly intuitive that 0 is an exact match and it means fewer properties on the result objects. |
In my opinion, added a new feature like Also, can we update the documentation and fusejs.io for option |
I think the underlying issue here is, that for developers who aren't necessarily math savvy (like myself), it makes sense to look for scores equal to 0, and interpret those as exact matches, and not compare to a number expressed as an exponential notation. I initially interpreted that as a bug, until I found this issue. However, I understand that a score of 0.0023545343451325 does not necessarily qualify as an exact match. I like the Would it make sense to introduce an This way, you have the option to keep using score as the preferred way of finding exact matches, and also flag your result items with an |
I will try and look at this implementation soon-ish (heavy on the 'ish' probably), but I think keeping the sort score separate from fuzziness is a really good idea. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
[This is in response to #354]
Currently, the
score
that is exposed in search results is calculated as a function of the following:Using the above, we compute the final score, which is what is used to sort the list.
As a result, exact matches are not necessarily given a final score of
0
. As noted in #354, however, people may want to use the score to decide whether a match was indeed exact.To address this, in
v5.2.2-alpha.0
I thus separated the "sort score" ($score
) from the "fuzziness score" (score
), of which only the latter is exposed.I am undecided on whether I will publish this as "latest". I would love some feedback.
The text was updated successfully, but these errors were encountered: