Last modified: 2013-03-20 17:31:09 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 T45020, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43020 - Auto-suggest in the search box should work on item labels
Auto-suggest in the search box should work on item labels
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks: 44529 45600
  Show dependency treegraph
 
Reported: 2012-12-12 17:19 UTC by Daniel Kinzler
Modified: 2013-03-20 17:31 UTC (History)
8 users (show)

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


Attachments

Description Daniel Kinzler 2012-12-12 17:19:39 UTC
When typing something into the search box, mediawiki supplies suggestions (from the opensearch API module, I think). This seems to only take into account page titles, which is quite useless for wikidata.org/Wikibase. Wikibase should make this work on item labels instead (ideally, preferring matches in the user's current UI language).
Comment 1 Daniel Kinzler 2012-12-13 12:09:22 UTC
See bug 43066 for an alternate solution
Comment 2 Nemo 2013-01-31 09:27:31 UTC
In short, does this mean making the gadget https://www.wikidata.org/wiki/MediaWiki:Gadget-Search.js (or equivalent) the default search?
Comment 3 Nemo 2013-02-16 12:13:49 UTC
(In reply to comment #2)
> In short, does this mean making the gadget
> https://www.wikidata.org/wiki/MediaWiki:Gadget-Search.js (or equivalent) the
> default search?

Maybe that's actually bug 43066; autosuggests probably requires something more than just using that gadget (and its underlying infrastructure)?
Comment 4 jeblad 2013-02-16 16:14:23 UTC
The solution in https://www.wikidata.org/wiki/MediaWiki:Gadget-Search.js is only a lookup for an exact match, it is not a real search. Due to a misunderstanding of the differences between site ids and language codes it will fail for several requests, For example the site id for Norwegian Bokmål Wikipedia is nowiki and the language code for Norwegian Bokmål is nb. Trying to build the site id from the language code the way this gadget works will give you the id "nbwiki" which is undefined.

A working search should give results across all languages and should not use either language codes or site ids unless this is specified as part of the search.
Comment 5 Nemo 2013-02-16 16:38:19 UTC
Thank you. Still, at least Italian users don't use anything else, considering the normal search completely useless, and that one far superior.
If the new search you're building is even better and will kill the useless current one, it's fantastic!
Comment 6 Lydia Pintscher 2013-03-07 13:45:18 UTC
Closing as fixed because the alternative solution is done.
Comment 7 abraham.taherivand 2013-03-20 17:31:09 UTC
Verified in Wikidata demo sprint 35-2

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


Navigation
Links