Summary
Categories with redirects don't appear in search results (particularly for searching using "intitle:").
Description
As described on English Wikipedia:
If, for instance, I search for intitle:Applied" with incategory:"Physics journals", I get the following. All is cool, that works.
However, if I search for intitle:Appl." with incategory:"Redirects from ISO 4", I get this. Which is no results at all.
How do I make this work? Can it be done?
Notes
Some initial thoughts from search engineers on #wikimedia-discovery IRC:
11:13 AM <•ebernhardson> guy CKoerner_WMF: problem isn't clear, the two certainly work together. intitle matches redirects, and redirects are the "same" document as the one it redirects to so categories match too
11:15 AM unless the user can present a counter case, my assumption would be search is working and there are no results
11:17 AM CKoerner_WMF: so, i looked at there is exactly 1 page in the category linked. And that page does not have 'Appl.' in the title or redirects
11:17 AM hmm, maybe they are elsewhere though...
11:20 AM so https://en.wikipedia.org/wiki/Category:Redirects_from_ISO_4 has 14k pages, and incategory:Redirects_from_ISO_4 has 1 result. no clue why though
11:20 AM <•dcausse> I think they expect the redirect page to be in the category
11:21 AM <•ebernhardson> guy dcausse: it is, from the perspective of cirrus, isn't it?
11:21 AM dcausse: the redirects are just the document they point at
11:21 AM oh, wait are the redirects *themselves* tagged? hmm
11:21 AM <•dcausse> but the redirects can have wikitext
11:21 AM <•ebernhardson> guy hmm, if that's the case then yea
11:21 AM <•dcausse> but here it's not really a category, it's {{R from ISO 4}}
11:22 AM https://en.wikipedia.org/w/index.php?title=Abstr._Appl._Anal.&redirect=no does not mention any category
11:23 AM <•ebernhardson> guy dcausse: you're right, i looked through and afaik the categories are all on the redirect page, not the page it links to, so we don't index it
11:23 AM not really sure how that would fit in the model. hmm.
11:24 AM <•dcausse> https://en.wikipedia.org/wiki/Wikipedia:Categorizing_redirects#How_to_categorize_a_redirect
11:25 AM seems complex :/
11:27 AM the category is marked with a template but this template is lost when populating the main doc with the redirect data :(
11:36 AM <•CKoerner_WMF> Chris Koerner Should I file a bug?
11:36 AM <•dcausse> we should index redirect content at some point but that seems tricky to do right. perhaps with a redirect_doc : [ {id:XYZ, text:, vesrsion:.}, {...} ] and a special noop handlers