Ladsgroup added a comment.

  In T196165#5864778 <https://phabricator.wikimedia.org/T196165#5864778>, 
@Silvan_WMDE wrote:
  
  > The Property:P18 <https://www.wikidata.org/wiki/Property:P18> input box 
performs a background search via commons API, using the "query" action. That 
search seems to be rather fuzzy and returns a list of items ordered by 
relevance, based on incoming links, templates, language etc. Apparently there 
is no easy configuration of request parameters (such as srqiprofile, srwhat, 
srsort, ...) that puts exact title matches on top of the returned list, while 
leaving the fuzzy search results in. However, exact string search is supported 
and the user can easily work around the issue by wrapping their "search string" 
in double-quotes.
  > On a side note, the search box in the upper right corner of 
commons.wikimedia.org also performs a background search via commons API, using 
the "opensearch" action. That one only searches the titles and correctly 
returns a single result when given an exact file name. However, that's probably 
not desirable in this use case here.
  
  Can we use another API endpoint in the frontend instead? Like "opensearch".

TASK DETAIL
  https://phabricator.wikimedia.org/T196165

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: 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

Reply via email to