Additionally, something I forgot: logical-and is '&&.' What is a logical-or?
EDIT: Found it in the reference. ||
ANOTHER EDIT: In the Calibre search, it's possible to do something like this to find matches in both groups:
(title:foo AND author:bar) OR (title:bar AND author:bar)
if possible, how would the same thing be done in a template?