Bene added a comment. As promised, here is a summary of what the needs of both the Wikidata and the Mobile team are:
**Mobile** - only replace api call, no further javascript adjustments (preferable via a hook?) - currently using list=prefixsearch&generator=prefixsearch -> other api call should have same result format **Wikidata** - show the term that matched as the link text (may be the label, an alias or the id) - for now use the same lookup service as wbsearchentities - nice to haves: - show description of the item below its label - show a thumbnail based on P18 <https://www.wikidata.org/wiki/Property:P18> **Conclusion** What comes into my mind is to provide a custom list=wikidatasearch&generator=wikidatasearch instead of a completely new api module. This way we can avoid to fale the whole response structure and the module gets more reusable. Furthermore, this option is more likely to fit our future needs for using Elastic as Wikidata's search engine (https://phabricator.wikimedia.org/T88534). To fix the problem of displaying the correct title, the mobile search code would need some tweaks for this solution because currently it doesn't take the title from the list=prefixsearch result but from the prop=pageimages information. This should however be trivial to fix. This system could also be extended to show a redirect's title instead of the target's title when matching a redirect (other story though). TASK DETAIL https://phabricator.wikimedia.org/T111209 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Bene Cc: Ricordisamoa, gerritbot, Aklapper, Wikidata-bugs, aude, Deskana _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs