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

Add API to search for packages matching a pattern #5231

Open
jaraco opened this issue Dec 25, 2018 · 2 comments
Open

Add API to search for packages matching a pattern #5231

jaraco opened this issue Dec 25, 2018 · 2 comments
Labels
APIs/feeds blocked Issues we can't or shouldn't get to yet search Elasticsearch, search filters, and so on

Comments

@jaraco
Copy link
Contributor

jaraco commented Dec 25, 2018

What's the problem this feature will solve?

I'd like to find all packages named "svg.*". Currently, searching for svg or svg. or svg.* or svg\. or "svg." all returns 3.7k results matching "svg" in a paged HTML form and the API limits results to 100 results. So it's not possible (as far as I can tell) to search for packages only matching a particular name without manually clicking through hundreds of HTML results.

Describe the solution you'd like

I can imagine a few solutions:

  • Enable (or document) more complex search patterns, or perform more sophisticated filtering after paring down the results from the index.
  • Add a UI element that allows returning all results.
  • Enable an API that allows for iterating over pages of results.
@di di added search Elasticsearch, search filters, and so on APIs/feeds blocked Issues we can't or shouldn't get to yet labels Dec 26, 2018
@di
Copy link
Member

di commented Dec 26, 2018

Thanks @jaraco! Blocked on #284.

@feenes
Copy link

feenes commented May 14, 2020

I think this might solve also an issue, that I have.

I'd like to search for packages programatically and for new projects. I'm not supposed to use the almost obsolete XMLRPC library as will disappear.

The reason I'd like to search programmatically instead of searching interactively is, that I'd like to retrieve the results by relevance but get rid of all packages, that haven't been updated for a certain (e.g. within the last year)
Too often some of the top hits are dead or unmaintained packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIs/feeds blocked Issues we can't or shouldn't get to yet search Elasticsearch, search filters, and so on
Projects
None yet
Development

No branches or pull requests

3 participants