Page MenuHomePhabricator

Articletopic search does not work on beta cluster
Closed, ResolvedPublic

Description

Here's an example page (en:Rabac) which seems to have topics correctly set:
https://en.wikipedia.beta.wmflabs.org/wiki/Special:ApiSandbox#action=query&format=json&prop=cirrusdoc&titles=Rabac

"weighted_tags": [
   "classification.ores.articletopic/Culture.Media.Media*|900"
]

A search for articletopic:media seems to generate the right query:
https://en.wikipedia.beta.wmflabs.org/w/index.php?search=articletopic:media&title=Special:Search&profile=advanced&fulltext=1&advancedSearch-current=%7B%7D&ns0=1&cirrusDumpQuery

"query": {
    "bool": {
        "must": [
            {
                "dis_max": {
                    "queries": [
                        {
                            "term": {
                                "weighted_tags": {
                                    "value": "classification.ores.articletopic\/Culture.Media.Media*",
                                    "boost": 1
                                }
                            }
                        },
                        {
                            "term": {
                                "ores_articletopics": {
                                    "value": "Culture.Media.Media*",
                                    "boost": 1
                                }
                            }
                        }
                    ]
                }
            }
        ],
        "filter": [
            {
                "terms": {
                    "namespace": [
                        0
                    ]
                }
            }
        ]
    }
}

and yet, the search does not find the page.

This seems to be true of all articletopic searches on beta. (Other searches seem to have problems as well, see T275909. Most searches work though.)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr assigned this task to dcausse.
Tgr added a subscriber: dcausse.

This was caused by a missing index and is fixed now. Thanks @dcausse!