Skip to content
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

exact-name matching boost should apply to scoped modules as well #174

Open
isaacs opened this issue Sep 5, 2017 · 3 comments
Open

exact-name matching boost should apply to scoped modules as well #174

isaacs opened this issue Sep 5, 2017 · 3 comments

Comments

@isaacs
Copy link

isaacs commented Sep 5, 2017

Scroll up for through twitter conversation here: https://twitter.com/izs/status/905120512879165440

If searching for foo-bar, a module named exactly "foo-bar" will rank higher than "@username/foo-bar", even if it is lower quality. This is surprising to users who think of the bit after the / as the "name" portion of a scoped module.

Suggestion: apply exact-name boost if the bit after the / in the name matches the search string exactly.

cc @rgrove @brianleroux

@satazor
Copy link
Member

satazor commented Sep 5, 2017

It sounds like a bug, will need to investigate. Will post updates here.

@adrianpraja
Copy link

+1

another example search term: dynamodb
returns a package with a score of 16

when:

  • published 6 years ago and readme says its deprecated
  • has low number of installs

exact-name matching receives too much boost that wipes the value in scoring

@satazor
Copy link
Member

satazor commented Sep 22, 2018

@isaacs doing what you suggest has one possible side-effect that can be exploited: users can create dummy packages, e.g.: @my-user/react, and take advantage of this in order to just mess around with the top results for certain searches. Do you have any idea how can we get around this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants