Page MenuHomePhabricator

Deepcategory search on Commons often does not show any results instead of results up to the configured limits
Open, LowPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

See T376440 (it was closed again and I was asked to instead create a new issue).

The deepcategory search does show partial results now so the other issue seemed done. However, apparently it can often fail. The example category did show many results sometimes but sometimes no results again. I thought it was a temporary problem because when I checked the search again, it did show results again but now it failed again to show results

  • Open/search for deepcategory:"Manufacturing by product"(link) in the Wikimedia Commons search

What happens?:
It shows no results and the error

Deep category search timed out. Most likely the category has too many subcategories

In case it works for you at the time when you look at this issue, here is a screenshot:

screens.png (630×1 px, 87 KB)

What should have happened instead?:
It should always show those partial results (as it does only sometimes).

Here's how it looks like when it works:

screens2.png (1×1 px, 2 MB)

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Gehel triaged this task as Low priority.May 30 2025, 9:40 AM
Gehel moved this task from needs triage to Feature Requests on the Discovery-Search board.
Gehel moved this task from Feature Requests to needs triage on the Discovery-Search board.
Aklapper changed the subtype of this task from "Bug Report" to "Feature Request".Jun 1 2025, 10:02 PM
Aklapper changed the subtype of this task from "Feature Request" to "Bug Report".

Possible solutions:

  • Some sort of cheapcat keyword that has a reduced depth
  • Some sort of parameter / named parameter passing for the keyword to allow users to change the depth
  • Some sort of cheapcat that runs the query but without a sort (wont time out, but doesnt get the n-closest nodes)