Last modified: 2014-09-09 14:34:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72560, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70560 - prefix: and insource: do not work at the same time
prefix: and insource: do not work at the same time
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nik Everett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-08 15:01 UTC by Tisza Gergő
Modified: 2014-09-09 14:34 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2014-09-08 15:01:47 UTC
When searching for "prefix:Template: insource:nuke" on Commons:

https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&profile=default&search=prefix%3ATemplate%3A+insource%3Anuke&fulltext=Search

it should at least return [[commons:Template:Nuke]] but there are zero hits.
Comment 1 Nik Everett 2014-09-08 15:03:21 UTC
I'll have a look at this.  Does <<Template: insource:nuke>> work for you for now?
Comment 2 Tisza Gergő 2014-09-08 15:20:24 UTC
(In reply to Nik Everett from comment #1)
> Does <<Template: insource:nuke>> work for you for now?

That works, thanks!
Comment 3 Nik Everett 2014-09-09 14:23:32 UTC
Cirrus implements that <<prefix:>> syntax by turning everything that comes after <<prefix:>> into a filter that matches the same stuff that the prefix search in the upper right matches.  I'm pretty sure this is what lsearchd did as well.  Here is what it spits out:
https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&profile=default&search=prefix%3ATemplate%3A+insource%3Anuke&fulltext=Search&srbackend=LuceneSearch
Comment 4 Tisza Gergő 2014-09-09 14:31:11 UTC
Indeed; using <<insource:nuke prefix:Template:>> works fine.

That's pretty confusing behavior IMO. Google used to prefix "greedy" keywords with 'all' (allintitle etc.) - something worth considering.
Comment 5 Nik Everett 2014-09-09 14:34:15 UTC
I wouldn't have picked this syntax myself but its how it used to work and one of the goal of CirrusSearch was to preserve backwards compatibility.....  Its not that people can't change how they work but there are tools in the wild that depend on this funky behavior.

I'm going to resolve this WONTFIX - its a silly syntax but I'm intentionally not going to fix it to preserve compatibility with whatever might rely on it.  Sorry!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links