[RFC] Separate fuzziness score from sort score
See original GitHub issue[This is in response to #354]
Currently, the score
that is exposed in search results is calculated as a function of the following:
- Internally calculated fuzziness score
- User inputted weight of the key
- Field-length norm (i.e, the shorter the field, the higher the weight)
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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
RFC 6203: IMAP4 Extension for Fuzzy Search
How the server handles multiple separate FUZZY search keys is implementation-defined. Fuzzy search algorithms might change, or the results of the algorithms ...
Read more >RFC 6203 - IMAP4 Extension for Fuzzy Search - IETF Datatracker
How the server handles multiple separate FUZZY search keys is implementation-defined. Fuzzy search algorithms might change, or the results of the algorithms ...
Read more >Scoring Theory | Fuse.js
This score is determined by three factors: Fuzziness score; Key weight; Field-length norm. # Fuzziness Score. The fuzziness score is internally ...
Read more >Matching methods - Plauti
' Partial Fuzzy Heavy is an algorithm that analyses the full value and generates a high score if there is a bigger partial...
Read more >Fuzzy Score - SAP Help Portal
You can sort the results of a query by score in descending order to get the best records first (the best record is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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