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
"composer search" should return more popular packages first (or better match namespaces in name-only mode) #10325
Comments
Thinking about this further, sort by popularity might also not provide the correct behaviour for completion. For example, let's say you actually want Maybe we need a special search which returns just deduplicated namespaces, then we drill into the namespace with the name search? 🤔 |
A special vendor search type might be valuable anyway as it'd make the returned list quite a bit smaller. |
@Seldaek how would this work? Would Packagist need to get this as a feature and then Composer 2.3 detects / expects it? Not sure how the aligning with Packagist works here. |
@Seldaek not sure this one should already be closed since it's discussing the sort too, which is AFAIK still in discussion? |
I figured #10320 is enough as we'll need to solve problems there before merging it. |
Searching for
returns all sorts of packages, but
laravel/
is the most obvious example what one would like to see here.If I search
I get better matching results. These two queries should behave basically in the same way, this type of search is similar to as-you-type auto-suggest you'd get on Google or some e-commerce site.
The reason is in #10320, when you do
it will auto-complete to
because it's offering more than 150
laravel-
-prefixed packages in front oflaravel/*
.So, either:
laravel/
is a better match to the querylaravel
thanlaravel-foo/
is)The text was updated successfully, but these errors were encountered: