Page MenuHomePhabricator

With using the search API query, interwikisearch returns results for English language projects only
Open, MediumPublicBUG REPORT

Description

With using search API query, interwikisearch results is returned only

This request from Wikipedia will return "interwikisearch" results:

https://en.wikipedia.org/w/api.php?action=query&list=search&format=xml&redirects=resolve&srlimit=1&srenablerewrites=1&&srprop=snippet&srinterwiki=1&srsearch=Tolstoy

A similar request from Wikisource - will not return:

https://en.wikisource.org/w/api.php?action=query&list=search&format=xml&redirects=resolve&srlimit=1&srenablerewrites=1&&srprop=snippet&srinterwiki=1&srsearch=Tolstoy

Expected Results:

If &srinterwiki=1 is defined, "interwikisearch" should be returned from any projects.

Event Timeline

Aklapper renamed this task from "interwikisearh" is worked from Wikipedia only to With using the search API query, interwikisearch returns results for English language projects only.Apr 19 2020, 12:03 PM
Aklapper updated the task description. (Show Details)
EBernhardson subscribed.

It's quite possible this was missed in the initial implementation. One of the initial goals was to increase visibility of the sister wikis by showcasing them on the (often) more popular wikipedias. Would have to look closer, but reasonable guess would be that the same config that gates showing the interwiki results on Special:Search also applies to API when it shouldn't.

daniel subscribed.

Aklapper removed projects: MediaWiki-Interwiki, Core Platform Team.
Herald added a project: Core Platform Team. · View Herald Transcript

Yay, Herald. Let's try this again.