> On Sat, Jan 5, 2019 at 7:49 PM <[email protected]> wrote: > >> Hello, >> >> We’re having some problems with the results we’re getting from the Wiki >> API. >> >> Although we’ve set the results to provide us with all results in a 100km >> radius, we’re only getting results in a 10km radius. >> >> Our tech team say: >> >> >> >> “We’ve realized that Wikipedia API couldn't respond with the correct >> results when search radius is over 10km. >> >> According to the online documentation, invoker could be searching in the >> 100km range. But we only have the results in 10km range most when we pass >> 100km as the radius.” >> >> >> >> Is there a known issue? This hasn’t been a problem for us in the past. >> Your assistance is much appreciated. >> >> >> > Hi,
if we are speaking about the geosearch generator or list module [0] and If I'm not mistaken 10km (20km for wikivoyage) has been the max radius allowed for a long time (since 2014 [1]). The documentation and API response should properly mention the max value. It's limited for performance reasons because this API is designed to sort *all* the results it sees. If sorting by distance is not required there is a way to run a simple "distance filter" using the search APIs[2] and the search keyword nearcoord [3], e.g. nearcoord:1000km,0,0 [4]. [0]: https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bgeosearch [1]: https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/119313 [2]: https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bsearch [3]: https://www.mediawiki.org/wiki/Help:CirrusSearch#bounded [4]: https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=nearcoord:1000km,0,0&formatversion=2 David C.
_______________________________________________ Services mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/services
