dcausse added a comment.

In general ORing a keyword is only meaning for keywords that match a code, it's rare when people ask us why can't I do intitle:foo OR intitle:bar. But here since we have multiple languages I feel that one may ask for a word in two languages different and prefer having a OR between the two. I think you are right that we should not push too much on the first iteration.
We are not that far from supporting OR between keywords, that parser is ready we just need to write the query building code. We are perhaps close enough that it preferable to stick with the simple syntax.

As for search @ in labels, one way will be to escape it with \@ but we can also be lenient and consume all @ that are not valid language suffixes.

If I sum-up (if @ is not appropriate because too widely used we can change it):

  • inlabel:foo@fr search foo fr with all its fallbacks
  • inlabel:foo: produces a warning
  • inlabel:foo@bar@fr: search foo@bar in with fr all its fallbacks
  • inlabel:foo\@bar@fr: search foo@bar in with fr all its fallbacks
  • inlabel:"foo bar@fr": search the phrase foo bar in with fr all its fallbacks, (feels a bit weird to have the suffix inside the double quotes)

I prefer to force the language because using the current language will produce queries that may be hard to share.

Impossible usecases (for the moment):

  • search foo in fr or en
  • search foo OR bar in fr
  • search only in strict fr excluding a variant/fallback

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

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

To: EBernhardson, dcausse
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
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to