Skip to content

Search algorithm weights #922

@wojtekmaj

Description

@wojtekmaj

I am raising this issue to collect cases where I think the search algorithm wasn't doing a great job. I'm hoping that one day this will become a compilation that ultimately will help building a better algorithm.

Query Issue Lessons
biome @biomejs/biome lands 2nd after biome itself as it's not an exact match. However, it has 50 times more downloads. 1. Consider an "org-less" package name an exact query match as well.
2. At some point, popularity must outweigh an exact match.
rea, reac I would have expected react to be a partial match for these queries, but nope - both of these queries show packages with <100 downloads on first 3 places, with react not even listed. Partial exact matches are important, especially with search updating as you type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions