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

Sorting of search results #365

Closed
nfx opened this issue Nov 20, 2013 · 38 comments
Closed

Sorting of search results #365

nfx opened this issue Nov 20, 2013 · 38 comments
Labels

Comments

@nfx
Copy link

nfx commented Nov 20, 2013

In order to get better package selection, it would be good to sort results based on downloads, number of stars, forks, any other things that promote package maturity.

@Seldaek
Copy link
Member

Seldaek commented Nov 20, 2013

That's already the case to some extent (packagist favs & downloads in the last month are taken into account). The rest isn't possible because nobody did it yet.

@Anahkiasen
Copy link

I'm really not under the impression it sorts by favorites or downloads. Really when I type something it pretty much just returns results in an order that seem random at best or at least not helpful.

I think in the long term Packagist should just deprecate the built-in favorite system to use Github and Bitbucket's stars/followers count which is displayed in the API. I don't think enough people use the favorites on Packagist for it to be a trusted sorting index.

I did that in my Laravel packages registry that wraps around the Packagist API and it yields much better results than what you'd get by typing "laravel" on Packagist I think. Any improvement to the sorting algorithm would be welcome in my opinion, really.

@thinkspill
Copy link

Completely agree on this issue. I would love to sort by stars and downloads, and even better would be to pull in stars from Github.

@EricReiche
Copy link

+1

@TigersWay
Copy link

Some tags are now way too deep to find anything..... +1

@jameshfisher
Copy link

+1

@jameshfisher
Copy link

Is there any workaround for this? E.g. any alternative UIs on the web that use the Packagist API to provide basic functionality? Currently the UI is next to useless to browse for unknown packages, e.g.

https://packagist.org/search/?q=logging

has 27 pages of results, in no discernible order.

@RonniSkansing
Copy link

+1

1 similar comment
@rtntdeck
Copy link

rtntdeck commented Jun 4, 2014

+1

@Seldaek Seldaek added the Feature label Jul 1, 2014
@justinkwanlee
Copy link

+1 this really should be a feature

@andrewtch
Copy link
Contributor

+1. @Seldaek , can I ask you for a little subset of a database again so I can do a PR? The last I have comes from veeeeeery old times.

@giorgio79
Copy link

Solr is used for search on composer, so in addition to sorting some facets would be good too...

@jhnlsn
Copy link

jhnlsn commented Sep 5, 2014

+1 and probably consider switching to elasticsearch, Solr is terrible for this sort of thing...

@cdekok
Copy link

cdekok commented Sep 6, 2014

Yes please 👍

@rreynier
Copy link

Total in favor of this 👍 !

The search results do not seem to have a noticeable pattern. Let me give an example of how the current search results are pretty hard to navigate through. I was looking for a mailer library. The most popular result on the first result page had about 7000 downloads and 4 favorites. Then I navigated to page two and found Swiftmailer. This library had 5million+ downloads and 40+ favorites. On that first result page there was even a library that was marked as "abandoned". As a result I ended up navigating through all 9 pages to see if there were any other popular libraries that happened to be stuck at the end.

I suggest making this a tabular result set. Allowing ordering by column. I also suggest adding a updated_at column which would be extremely useful to find out how stale a library may be.

@bencromwell
Copy link

As it stands, you can only find a package if:

  • you already know what to look for
  • you try a few from the selection Packagist gives you and have a go

It'd be nice not to have to incur the technical debt from the latter.

@marceloandrader
Copy link

+1 if you need some hands to help also

@ghost
Copy link

ghost commented Jan 26, 2015

+1

5 similar comments
@Grynn
Copy link

Grynn commented Feb 5, 2015

+1

@forsethc
Copy link

+1

@Arsey
Copy link

Arsey commented Feb 12, 2015

+1

@Kampfbereit
Copy link

+1

@jakubpas
Copy link

jakubpas commented Mar 1, 2015

+1

@stopsopa
Copy link

+1

@stopsopa
Copy link

i have my brutal solution for this.

  • go to page ... (link removed on edit)
  • drag button "packagistsort" to bookmarks toolbar in browser
  • search eg. "curl" in packagist.org
  • press just created button in bookmarks "packagistsort"

Please don't use this when phrase is not precise and packagist return 100 pages of results

--------- Edit:
Don't use this solution anymore is not needed now

@laland
Copy link

laland commented Apr 28, 2015

+1

@vimishor
Copy link

I created a gist with a (temporary) solution for CLI, which I'm using. Maybe someone could find it useful.

@nickdietel
Copy link

+1

@Seldaek
Copy link
Member

Seldaek commented May 31, 2015

You can now sort by Stars and Downloads

@Seldaek Seldaek closed this as completed May 31, 2015
@justinkwanlee
Copy link

@Seldaek OMG THIS IS THE GREATEST WOOOOOOO

@jakubpas
Copy link

Cool ;-)

@saurini
Copy link

saurini commented Jun 1, 2015

THANK YOU SO MUCH!

@stopsopa
Copy link

stopsopa commented Jun 1, 2015

Great :)

@BlakeGardner
Copy link

So much yes

@stopsopa
Copy link

stopsopa commented Nov 3, 2015

great, and thanks to remove my solution ;) indeed it's not useful anymore.

@zonky2
Copy link

zonky2 commented Jul 12, 2019

hmm ...??
I can't find anything to sort on the site https://packagist.org/

I would like to sort by

  • last added
  • by date of release

@stonetwig
Copy link

How do you sort by downloads / stars? It's not very obvious

@alexkuc
Copy link

alexkuc commented Apr 5, 2021

I think the feature used to be there (sorting) but it is gone now #818 ?

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

No branches or pull requests