View Single Post
Old 05-21-2020, 04:29 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Rellwood View Post
Is it possible to search for books that have either/and tags instead of all/none?

I am tired of having to exclude huge amounts of tags to get books that have either/or/both. Is there a way around this? I've had to use a yes/no column to mark the books.
calibre supports both "and" and "or" in searching.

When using the tag browser to construct searches you can tell calibre which to use by clicking on the tools icon (bottom left of the tag browser), choosing "Search type ..." and then selecting the one you want.

When typing the search manually simply use "and" or "or" where you want. You might want to consider using parentheses if you are mixing the two so that calibre knows what you mean. Example: what does
Code:
foo or bar and mumble
mean? Is it
Code:
(foo or bar) and mumble
or
Code:
foo or (bar and mumble)
IIRC by default calibre processes "and" before "or", making the default
Code:
foo or (bar and mumble)
To be complete and again IIRC, "not" is processed before "and".
chaley is offline   Reply With Quote