Last modified: 2014-02-20 21:39:05 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 T39871, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37871 - Search ignoring my settings explicitly set on [[Special:Search]] (advanced search) when search term starts with "<Namespace>:"
Search ignoring my settings explicitly set on [[Special:Search]] (advanced se...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-23 17:13 UTC by Rainer Rillke @commons.wikimedia
Modified: 2014-02-20 21:39 UTC (History)
7 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2012-06-23 17:13:39 UTC
https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&profile=advanced&search=MediaWiki%3AVisualFileChange.js&fulltext=Search&ns2=1&redirs=1&profile=advanced

Is the search string. I want results in the user-namespace but instead I get only results for the MediaWiki-namespace because search "thinks" it must be smart and override my setting.

Results:
* MediaWiki:VisualFileChange.js
* MediaWiki:VisualFileChange.js/exec.js
* [...]
* MediaWiki:JSONListUploads.js

Not one result in user namespace

Expected:
Only search results in user namespace or at least only a few in MW-Namespace.
Comment 1 Quim Gil 2013-03-13 18:28:48 UTC
(In reply to comment #0)
> Expected:
> Only search results in user namespace or at least only a few in MW-Namespace.

I would say no results from other namespaces, only the ones selected by the user. That is why the user is selecting specific namespaces in the advanced search, right?

PS: We are writing a scenario to check this problem, in the context of https://www.mediawiki.org/wiki/QA/Browser_testing/Search_features
Comment 2 Andre Klapper 2013-03-26 11:19:22 UTC
[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]
Comment 3 Dan Garry 2014-02-11 18:16:06 UTC
Verified as an issue in CirrusSearch. Recategorising.
Comment 4 Nik Everett 2014-02-11 18:23:37 UTC
The namespace: thing is supposed to override the clicking.  Changing it too much is going to cause trouble with people that rely on it or the behaviors that stem from it (stuff like the prefix url parameter).  If we're going to change it I'd advise at a minimum the prefixes continue to override the "Content pages" tab.  It'd probably be safer for them to override all tabs but Advanced.
Comment 5 Chad H. 2014-02-11 18:33:02 UTC
I think it's actually an issue in core, not Cirrus or any other search backend.
Comment 6 Dan Garry 2014-02-11 18:39:48 UTC
(In reply to comment #4)
> The namespace: thing is supposed to override the clicking.  Changing it too
> much is going to cause trouble with people that rely on it or the behaviors
> that stem from it (stuff like the prefix url parameter).  If we're going to
> change it I'd advise at a minimum the prefixes continue to override the
> "Content pages" tab.  It'd probably be safer for them to override all tabs
> but
> Advanced.

That makes sense. If someone goes to the trouble to manually configure what namespace they're searching in, then types in "MediaWiki:Foo" as their search query, they're not expecting search to override their manually selected namespaces. In most other cases where they've not chosen their namespaces manually, it makes sense for this override to take place.
Comment 7 Platonides 2014-02-20 21:39:05 UTC
But, how are you expecting to determine if the user manually adjusted the checkboxes or simply went to https://commons.wikimedia.org/wiki/Special:Search and expected the manually typed namespace to override them?

And if you are thinking "let's check if typed on skin search box or Special:search", that would be very inconsistent, as searching «MediaWiki:VisualFileChange.js» in the skin, then pressing Search again, would lead to a completely different result.


PS: You can search results in user ns only by issuing  "MediaWiki:VisualFileChange.js".
Maybe the fix shall be adding a «Did you mean… ?» for this kind of conflicts.

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


Navigation
Links