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.

Issue to track v5.0.0 beta feedback

See original GitHub issue

This issue is for collecting feedback and possible issues during the beta testing of MiniSearch v5.0.0, which includes an improved scoring algorithm.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:20 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
lucaongcommented, Apr 5, 2022

Decision about the issue above was to keep the weights unchanged, the relevant discussion is in #146

1reaction
lucaongcommented, Apr 5, 2022

Here is one case that might need tweaking before releasing v5.0.0: when using both prefix and fuzzy match, if a term matches one document with prefix search and another with fuzzy search, all else being equal (including the edit distance, field length, etc.) by default the prefix match should probably score slightly higher than the fuzzy match, because it tends to be more relevant.

Here is a spec reproducing the issue:

it('ranks prefix matches higher than fuzzy matches with the same distance, all else being equal', () => {
  const ms = new MiniSearch({ fields: ['text'] })
  const documents = [
    { id: 1, text: 'unicorns' },
    { id: 2, text: 'unikorn' }
  ]
  ms.addAll(documents)
  expect(ms.documentCount).toEqual(documents.length)

  const results = ms.search('unicorn', { fuzzy: 0.2, prefix: true })
  expect(results.map(({ id }) => id)).toEqual([1, 2])
})

Also, this is mentioned by at least one user in this issue report (see the comment about order of results in the first message).

/cc @rolftimmermans

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Devtools can't connect in v5.0.0 · Issue #17586 - GitHub
I have read the Contributing Guidelines for this project. I agree to follow the Code of Conduct that this project adheres to. I...
Read more >
SmallHD PageOS 5 Firmware v5.0.0-Beta-3 - Newsshooter
Beta 2 Issues Resolved by Beta 3. VISION 24 monitors flicker on SDI video, roughly every 8 seconds; 4K Production Monitors: SDI->HDMI cross ......
Read more >
zsh-abbr v5.0.0.beta-1 pre-release. multi-word abbreviations!
This release, the first with support for multi-word abbreviations, makes a bunch of changes under the hood. I've been using it without ...
Read more >
ContentBox v5.0.0 Beta Released - Ortus Solutions
ContentBox is a ColdFusion (CFML) Modular CMS based on modern technologies and container technology. This release brings over 40 new ...
Read more >
MUI Versions
Here you can find the latest unreleased documentation and code. You can use it to see what changes are coming and provide better...
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