Routing to discovery@ where all the search people are.
Is there any MediaWiki API that could be used for a proper
case-insensitive category title search? Or is this still something that
doesn't exist yet?
To my knowledge this is something that doesn't exist yet.
For some context, I'm asking this for a feature request in the
Commons Android app that asks for a case insensitive category title
search. In case you're wondering where category search comes into
picture in the app, adding appropriate categories for an image is part
of the upload flow.
I wonder that such an API doesn't exist yet for the following reasons:
A) The exhaustive search for such an API wasn't fruitful. The closest we
got was using `generator=search` with `srsearch=intitle:$SEARCH_TERM`
and `srnamespace=14` (14 is the id for category namespace in Commons).
But it's not a proper category search as it is essentially a search for
pages existing in Category namespace. See  for why it's not a proper
B) I saw "T59302 Suggest case insensitive results when searching for
categories to add" which is still open. In particular the comment in
the ticket pointed to by .
This all seems correct to me. The comment linked here () still holds true today, to perform this search we would need to add lowercased prefix indices somewhere.
Engineering Manager, Search Platform
UTC+1 / CET
Discovery mailing list