Silvan_WMDE added a comment.
Brilliant answer, thanks for the insights and also for your lovely blog post <https://blog.wikimedia.org/2017/11/06/searching-techniques/>. > So, the question is what is the P18 search intended to do? Is it supposed to be a general search that can go poorly in unusual circumstances (unintended negation—which I wrote a blog post <https://blog.wikimedia.org/2017/11/06/searching-techniques/> about a couple of years ago—or unexpectedly ambiguous searches) like the main search on the Special:Search page? Or is it supposed to be a file name/title–matching search like we have in the upper corner on Commons? Or is it trying to be both? I briefly discussed with @Lea_Lacroix_WMDE and indeed, ideally it should be both. > If it's supposed to be both, then the obvious options to me are to either live with the general search as is, or do something much more complicated like interleaving the general search and completion suggester results together. (My hypothesis is that something at least a little like that is already happening since the partly negated `Barcelonnette - Villa du Parc du Mercantour -984.jpg` search gets an exact match at the bottom of the list—maybe moving it to the top of the list of general search results would be sufficient.) This! I agree that some kind of extra algorithm must be putting the exact file match to the bottom of the list - moving it to the top would be perfect. If search platform team can do that, please provide a quick feedback as to how and when it could happen. Alternatively, we would have to expand the P18 <https://phabricator.wikimedia.org/P18> search box to do both, file name and general search, by sending out two different API requests, one to the "query" and one to the "opensearch" endpoint, then combine the results on our side. (Option 1 would be much preferred, though.) 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 Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs