composer / packagist

Package Repository Website - try https://packagist.com if you need your own -
https://packagist.org/
MIT License
1.74k stars 477 forks source link

Packagist search shows results with bad priorization. #345

Closed marcioAlmada closed 10 years ago

marcioAlmada commented 11 years ago

I just published a new package with the name minime/annotations. When I search the exact same package name it appears as the last result (pagination 9).

My general point is: I am searching an exact vendor/package-name and if there is a match, it should appear at first place, followed by the partial matched packages. What happens is exactly the opposite in most cases.

A simple search for the term minime should already bring the mentioned package as a first result since there is no other package with this vendor name, neither with this exact string in package description.

So I think a better way to order results would be:

  1. show literal matches ordered by download count, stars and other stats
  2. show partial matches ordered by download count, stars and other stats

I understand that package quality is very important and listing popular packages first is a great idea. But literal match should have priority for packagist search engine since publication is based on vendors + package names as package unique identifiers.

marcioAlmada commented 10 years ago

Problem is now solved. Thanks!