Page MenuHomePhabricator

If deepcat keyword fails with too many categories, empty query is run
Closed, ResolvedPublic

Description

If deepcat: keyword returns an error and not other query criteria has been provided, the engine runs query that essentially searches for nothing. Instead it should not run anything and return empty result.

If other query criteria has been provided then it may be ok to run the search and provide result, but empty search is always useless.

Event Timeline

Hi @Smalyshev do you have an estimation when this bug will approximately be fixed?

Smalyshev added a project: User-Smalyshev.
Smalyshev moved this task from Backlog to Next on the User-Smalyshev board.

Change 420113 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[mediawiki/extensions/CirrusSearch@master] Disable results if there are too many categories

https://gerrit.wikimedia.org/r/420113

@Lea_WMDE to confirm, the fix would be if there are too many categories, the query would fail (return no results at all).

Change 420113 merged by jenkins-bot:
[mediawiki/extensions/CirrusSearch@master] Disable results if there are too many categories

https://gerrit.wikimedia.org/r/420113

@Smalyshev confirmed! There will be the error message, though, right?