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

Kaganer created this task.Apr 19 2020, 1:02 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 19 2020, 1:02 AM
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)
Restricted Application added a project: Platform Engineering. · View Herald TranscriptApr 19 2020, 12:03 PM
EBernhardson triaged this task as Medium priority.Apr 20 2020, 4:25 PM
EBernhardson added a subscriber: EBernhardson.

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 added a subscriber: daniel.

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.