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

Dvorapa created this task.Jan 14 2017, 8:56 AM
Restricted Application added a project: Discovery. · View Herald TranscriptJan 14 2017, 8:56 AM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Dvorapa updated the task description. (Show Details)Jan 14 2017, 8:56 AM
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 added a subscriber: debt.

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

Restricted Application added subscribers: Urbanecm, jeblad. · View Herald TranscriptJan 29 2019, 7:00 PM