Page MenuHomePhabricator

Expose interwiki search results in API
Closed, ResolvedPublic

Description

list=search doesn't show interwiki results when they exist. It should.


Version: 1.23.0
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44420

Details

Reference
bz60975

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:03 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz60975.
bzimport added a subscriber: Unknown Object (MLST).

What sort of structure should this look like in the output?

Right now we've got:

<query>

<searchinfo totalhits="3"/>
<search>
    <p ns="0" title="foo" etc etc />
    <p />
    <p />
</search>

</query>

Since we only expose titles to the IW search, maybe we could do something like:

<query>

<searchinfo totalhits="3"/>
<search>
    <p ns="0" title="foo" etc etc />
    <p />
    <p />
</search>
<interwikiinfo "totalhits="3"/>
<interwiki>
    <iw prefix="wikipedia" url="...">
        <p ns="0" title="foo" />
        <p ns="2" title="bar" />
    </iw>
</interwiki>

</query>

Change 112913 had a related patch set uploaded by Chad:
WIP: Support interwiki searches in API

https://gerrit.wikimedia.org/r/112913

Change 112913 merged by jenkins-bot:
Support interwiki searches in API

https://gerrit.wikimedia.org/r/112913