Quote:
Originally Posted by Rellwood
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".