Skip to content

Sort search results by relevance instead of alphabetically #14

Description

@sjsanc

Search results are sorted alphabetically by package name, which buries the most relevant matches. Searching "spotify" shows "alsotropon" near the top because it comes first alphabetically, while the actual spotify package is far down the list.

We should score results by relevance — exact name match first, then name prefix, name substring, and finally description-only matches. Within each tier, secondary sort could use AUR popularity or alphabetical order.

This affects both sync and AUR search results independently of the AUR integration work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions