npms-analyzer: Should not put exact matches first
I don’t care if a module matches what I wrote. I want the best one.
For example, https://npms.io/search?term=electron 99% of people would want the second result electron-prebuilt, not an obscure and unmaintained CLI framework with much lower score.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 7
- Comments: 17 (6 by maintainers)
Why not allow the selection of how you want results handed to you? Kind of weird to not be able to order-by any of the metrics.
etc.
I think it’s funny we’re debating which should be shown when obviously it’s a subjective matter and can even change from search to search. Literally everything else on the web has a way to order by something.
Looks like those are just cases of the metric analysis being off, not for artificially placing exact matches at the top. I agree
mithrilshould be before any mithril plugins, but that should be fixed in the analyzer. Doing it this way is just covering up holes in the metric analysis.So your argument is not being able to find a really bad module. 😲
You go to npms.io, write package name, press enter, click package name, instead of just:
$ npm docs package-name. I think you should revisit whether your personal use-case is worth making the search results bad.@sindresorhus given that autosuggest and the package’s page don’t yet exist, finding a specific module, that’s really bad, would be near impossible.
As I see it, npms isn’t just about discovering. I use npms as a easy way to find the documentation I’m using and so when I write a name I want that exact package.
Nonetheless, I agree that in that case and others, it may lead to some misguidance. Maybe we could distinguish the bad package to indicate that it just shows up because of the exact name match.