question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danielfdickinsoncommented, Apr 28, 2020

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.

0reactions
github-actions[bot]commented, Jun 30, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found