Page MenuHomePhabricator

Display entity & article namespace completion search together
Open, NormalPublic

Description

Right now, wikidata completion search box only searches entity namespaces. We may want to be able to search titles in article namespaces too, e.g. when searching for Wikidata:Project chat we may want to display both entity with label "Wikidata:Project chat" and the actual page having this title.

Current proposal for implementing this is:

  1. Refactor GUI code so that instead of Wikidata fully replacing completion search box, the standard box allows augmenting the result set data and display
  2. Make the GUI code for standard implementation call standard title search, and in addition Wikidata part of the code calls wbsearchentities, as now
  3. Display both sets of results (likely wbsearchentities first, title search second)

See more discussion of it in https://www.wikidata.org/wiki/User:Smalyshev_(WMF)/Wikidata_search#GUI

Event Timeline

Restricted Application added a project: Discovery-Search. · View Herald TranscriptMar 22 2018, 8:53 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
EBjune triaged this task as Normal priority.Mar 29 2018, 5:11 PM

I think the frontend shoul be able to get this today by issuing two api requests, for entities an regular completion search? We could optimize later if it's a perf problem,

I think the frontend should be able to get this today by issuing two api requests

Yes, though the larger goal is to also get rid of Wikidata overriding the whole search box, and instead make it run standard API request and have small(er) pluggable Wikidata part than runs the second request. This is not a requirement to implement the functionality but is The Right Thing (TM) :)

Yurik added a subscriber: Yurik.Sep 26 2018, 4:04 PM

This issue has raised a lot of concerns at the OpenStreetMap wiki after wikibase installation. Is it possible to disable wikibase search suggestions until this ticket is implemented? Thx!

See T205560: Add option to disable Wikibase’ custom search box for @Yurik’s feature request. (This task is much more general, if I understand correctly.)