| EBernhardson added subscribers: dcausse, Smalyshev. EBernhardson added a comment. |
Proposed syntax as follows. Note that we can have an incaption alias of inlabel, but this will be implemented in WikibasecirrusSearch where these considered labels so the code in wikibase to filter by them should probably reference label. One potential sticking point is the syntax of specifying one or more languages. I'm not entirely convinced this is the best syntax, but I'm not sure we have something today to draw from as an example. The pipe usage here is slightly different than we use in other places. We could potentially replace the pipe with a comma, i'm not sure if that's better or worse.
Expected usage:
- inlabel:gift
- Pages that have the word gift in labels.*
- inlabel:de|gift
- Pages the have the word gift in labels.de
- inlabel:"en|gift wrap"
- Pages that have the phrase "gift wrap" in labels.en
- inlabel:"pt-br,pt,colaborativa"
- Pages that have the word colaborativa in pt-br or pt
Expected edge cases
Comma separated values:
- inlabel:gift,wrap
- Pages that have the words wrap and gift in labels.*, along with a warning that gift is an unknown language.
- inlabel:en,gift,wrap
- Pages that have the words wrap and gift in labels.en. Basically we will search for 'gift,wrap' and elastic will turn the , into a token separator.
spaces have to be quoted:
- inlabel:en,gift wrap
- Pages that have the word gift in labels.en and the word wrap in any part of the page
Other current problems:
The mapping on commons.wikimedia.org doesn't currently include the labels, meaning they are stored but not searchable. commonswiki on beta has the appropriate mapping, which means we need to reindex commonswiki. We've had other needs to run the reindex on commonswiki anyways, This will have to wait a few weeks though, we are expecting to roll out software upgrades next week and the following week that will prevent a reindex. Once those two upgrades are done we can do the reindex on prod commonswiki. This wont prevent beta cluster from working in any way.
Cc: Smalyshev, dcausse, Nuria, Abit, Cparle, Ramsey-WMF, Aklapper, JKSTNK, Lahi, PDrouin-WMF, E1presidente, Anooprao, SandraF_WMF, EBjune, Tramullas, Acer, V4switch, Silverfish, Susannaanas, Wong128hk, Jane023, Wikidata-bugs, Base, matthiasmullie, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Matanya
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
