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

Filter packages by “date last updated” #16861

Open
pauloxnet opened this issue Oct 9, 2024 · 2 comments
Open

Filter packages by “date last updated” #16861

pauloxnet opened this issue Oct 9, 2024 · 2 comments
Labels
feature request search Elasticsearch, search filters, and so on

Comments

@pauloxnet
Copy link
Contributor

What's the problem this feature will solve?
I want to be able to filter packages by “date last updated”.

Describe the solution you'd like
It would be very convenient to have a new filter in the page where to select the amount of time to use to filter by last update date leaving the sorting by relevance.

Additional context
For example I’m searching for libraries with the term “opengraph” and I see 102 projects in the results, but the first ones in the list have not been updated for several years. (e.g. 2012, 2014, 2015, 2018, ...)
https://pypi.org/search/?q=opengraph

I would like to have an easy way to do the same search but only see the packages that have had at least one update in the last 2 years or similar.

An examples of filters we might want to use would be: <number:integer> <scale:(hours|days|weeks|months|years)) (e.g. 3 months, 3 years, 7 days)

@pauloxnet pauloxnet added feature request requires triaging maintainers need to do initial inspection of issue labels Oct 9, 2024
@ewdurbin ewdurbin added search Elasticsearch, search filters, and so on and removed requires triaging maintainers need to do initial inspection of issue labels Oct 10, 2024
@miketheman
Copy link
Member

Curious doesn't this dropdown get you that?

Screenshot 2024-10-10 at 10 38 35

Beyond that, the majority of the search queries and operators, and boosting settings are here:
https://github.com/pypi/warehouse/blob/7194600c2f7cbe88f64a4387f8869cc634036e52/warehouse/search/queries.py

@pauloxnet
Copy link
Contributor Author

Curious doesn't this dropdown get you that?

The dropdown is limited to sorting by "Relevance" or "Date last updated", but a very recent packages may not be relevant at all, and relevant ones may not have been updated in years.

As I tried to explain above, in my search I want to keep the sorting by "Relevance", but only include in the results packages that have had an update in a certain time frame (e.g. last 2 years).

Beyond that, the majority of the search queries and operators, and boosting settings are here: https://github.com/pypi/warehouse/blob/7194600c2f7cbe88f64a4387f8869cc634036e52/warehouse/search/queries.py

Thanks for pointing me in, I've never seen the warehouse code, but I'll try to look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request search Elasticsearch, search filters, and so on
Projects
None yet
Development

No branches or pull requests

3 participants