EBernhardson added subscribers: dcausse, Smalyshev.
EBernhardson added a comment.

Perhaps i was simply blind ... but the link (that I provided) does include the captions in two places:

  • labels.{lang}, for caption specific search
  • duplicated into opening_text which gives it a reasonable weight in the full text search

The problem is going to be querying it. Currently on wikibase we can query the entity labels or we can perform a normal query, but we can't integrate the two result sets into a single list. This is gated on the namespace being queried, which works for wikidata.org but will not work on commons as the data is stored in a slot of the NS_FILE page, rather than an entity namespace.

A couple options:

  • When the file namespace is being searched we could run a secondary search for labels and put it in the sidebar, the same as the sister-project results are shown on many wikipedias. All the infrastructure exists for this, but someone has to figure out how to glue it together properly.
  • We could add a full text keyword for the opening_text field on commons, which will effectively be caption search. This won't have per-language search analysis like the labels handling, but is very easy to do.

@Smalyshev @dcausse you might weigh in as well


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

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

To: EBernhardson
Cc: Smalyshev, dcausse, Jdforrester-WMF, Aklapper, Cparle, EBernhardson, Abit, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Anooprao, SandraF_WMF, GoranSMilovanovic, QZanden, EBjune, Tramullas, Acer, V4switch, LawExplorer, Silverfish, _jensen, Susannaanas, Wong128hk, Jane023, Wikidata-bugs, Base, matthiasmullie, aude, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Matanya, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to