Page MenuHomePhabricator

CirrusSearch: hastemplate does not work properly
Open, MediumPublic

Description

Steps to reproduce:

  1. Open any template (tested on cswiki)
  2. Open "What links here" page
  3. Filter results to transclusions only
  4. Open search page and search hastemplate:xyz (where xyz is your chosen template) in all namespaces
  5. Open search page and search insource:/\{\{xyz/i (where xyz is your chosen template) in all namespaces

Expected results:
All three listings should be the same (only insource could contain commented or nowiki's occurrences)

Current results:
Many of templates get a much smaller list for hastemplate than for other two possibilities. It behaves badly even for exclusions (by -hastemplate:xyz). This is ok for usual search, but e.g. if you exclude them when including templates using a pywikibot (by -search:"-hastemplate:xyz") it is not good, see this edit for instance

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
debt triaged this task as Medium priority.Jan 19 2017, 11:20 PM
debt moved this task from needs triage to This Quarter on the Discovery-Search board.
debt subscribed.

We'll take a look at this - but unsure if it's something that the Discovery team will be able to fix.