Silvan_WMDE added a comment.
> I don't think it's happening on the search side. I am quite sure it is. Regardless of Wikidata's Javascript code behind the scenes, it is much more instructive to examine the outgoing requests to the commons API <https://commons.wikimedia.org/w/api.php> and their corresponding responses. The P18 search issues a single request to that API and you can easily reproduce the results in your browser, without any dev tools: - A search for the Barcelonette villa file ending in -984.jpg <https://commons.wikimedia.org/w/api.php?action=query&list=search&srsearch=Barcelonnette%20-%20Villa%20du%20Parc%20du%20Mercantour%20-984.jpg&srnamespace=6&srlimit=11&format=json&srsort=relevance> puts the one ending in -986.jpg on top and the requested one to the bottom of the resulting json list. - A search for the file ending in -986.jpg <https://commons.wikimedia.org/w/api.php?action=query&list=search&srsearch=Barcelonnette%20-%20Villa%20du%20Parc%20du%20Mercantour%20-986.jpg&srnamespace=6&srlimit=11&format=json&srsort=relevance> puts the one ending in -984.jpg on top and in turn the requested -986.jpg one to the bottom. It can also be reproduced via the commons search page itself: Barcelonnette - Villa du Parc du Mercantour -984.jpg <https://commons.wikimedia.org/w/index.php?sort=relevance&search=Barcelonnette+-+Villa+du+Parc+du+Mercantour+-984.jpg> vs Barcelonnette - Villa du Parc du Mercantour -986.jpg <https://commons.wikimedia.org/w/index.php?sort=relevance&search=Barcelonnette+-+Villa+du+Parc+du+Mercantour+-986.jpg> This has nothing to do with Wikidata's P18 search box or its Javascript code. TASK DETAIL https://phabricator.wikimedia.org/T196165 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Silvan_WMDE Cc: EBernhardson, TJones, dcausse, Ladsgroup, Silvan_WMDE, Addshore, Bencemac, Aklapper, Ayack, Liuxinyu970226, Smalyshev, Lydia_Pintscher, Lea_Lacroix_WMDE, Iflorez, darthmon_wmde, alaa_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
