Page MenuHomePhabricator

[Task] Make search suggestions work for pages outside the main namespace on Wikidata
Closed, DuplicatePublic

Description

The search suggestions box does not give suggestions for pages outside the main namespace.

Details

Reference
bz46251

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:25 AM
bzimport set Reference to bz46251.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 46638 has been marked as a duplicate of this bug. ***

raising to major as this is getting pretty annoying

not a great description but I can confirm this doesn't behave how I expect.

go to mediawikiwiki and start typing in search: "project:i" vs.

go to wikidatawiki and start typing in search: "wikidata:intro"

I'm not sure offhand how one checks whether a given wiki is cirrus or not these days. (and too sleepy to try to figure it out!)

My guess is this is unrelated to the fact that it's a repo or has the wikidata extensions.

> Nik/Chad for investigation

good night!

No this is specific to the special suggester written for Wikidata. It simply only takes items into account at the moment.

[ops-triage: No ops territory, hence removing keyword]

Possible solution for the issue: the wbsearchentities API module would need to be extended with a parameter that says "give me non-entity pages too" and then return them, making them look like entities in the API.

The other solution would be to make two calls, one to wbsearchentities and one to the MediaWiki pages search and then combine the results in the JavaScript.

I have a preference for the first solution.

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).

Mixing together mainspace items and pages from other namespaces could result in some confusion. For example, if a user is searching for "Template:Support", there would be two items with that label, along with the local template itself titled "Template:Support". If these are to be mixed, there needs to be some way to clearly indicate whether a page is a Wikidata item or not.

(Side note: Even if this task is fixed, the issue of it being quite difficult to search for non-mainspace pages will still be a problem for non-English speakers until some kind of fix for T43845 is developed...)

thiemowmde renamed this task from Search suggestions doesn't work for pages outside the main namespace to [Task] Search suggestions doesn't work for pages outside the main namespace.Aug 13 2015, 3:24 PM
thiemowmde updated the task description. (Show Details)
thiemowmde set Security to None.
thiemowmde added a project: patch-welcome.
thiemowmde edited subscribers, added: thiemowmde; removed: Wikidata-bugs, Denny, Manybubbles.
Lydia_Pintscher renamed this task from [Task] Search suggestions doesn't work for pages outside the main namespace to [Task] Make search suggestions work for pages outside the main namespace.Aug 13 2015, 7:05 PM

A possible solution can be add a 'hamburger menu' (or other of similar) next to the search box. When open this new menu you can find two option (radio button: only one can be selected):

  • Search only among Wikidata items
  • Search into non-main namespaces

The first choice is the default selected.

Okay, Since it became really annoying to me, I wrote a gadget (in a very hacky way) that you can enable now, it's called SearchAll and after enabling it, when you search, it shows suggestions from other namespaces too:

image.png (366×473 px, 44 KB)

image.png (488×479 px, 73 KB)

Please test.

thiemowmde added a subscriber: Bene.

@Lydia_Pintscher, for your information, two users reported this issue at https://www.mediawiki.org/wiki/Talk:Wikibase, filed under "Search no longer works properly". They understand what's going on, and wish our top-right search box would allow to find both: pages in non-entity namespaces by title, and entities by label and aliases.

Personally I think we are postponing this way to long. We know about this for a very long time (it's actually one of my personal pet-bugs I wanted to fix for four years now), and already invested some time into this (I remember @Bene working on this), but never achieved anything that's visible to our users. Is it sensible to wait for WMF Discovery-Search to solve this for us? If so, how, and when?

EBjune lowered the priority of this task from High to Low.Feb 6 2018, 6:24 PM
EBjune subscribed.

This is a larger chunk of work that requires UI engineering support, which we don't have on the search platform team. So, if maybe someone from WMDE wants to help us, we could take a look at it.

Smalyshev renamed this task from [Task] Make search suggestions work for pages outside the main namespace to [Task] Make search suggestions work for pages outside the main namespace on WIkidata.Feb 6 2018, 6:24 PM
matej_suchanek renamed this task from [Task] Make search suggestions work for pages outside the main namespace on WIkidata to [Task] Make search suggestions work for pages outside the main namespace on Wikidata.Feb 6 2018, 8:18 PM
thiemowmde raised the priority of this task from Low to High.Feb 7 2018, 9:18 AM

Please don't lower Wikidata tasks without explanation.

@thiemowmde sorry about that, it showed up in the triage column of our workboard, and for Search Platform, this is low priority, and we won't be engaging in this unless we get some UI engineering help.

I think this is the same as T190454. I am merging this in as T190454 has better description.