How do I search by multiple tags?
I am able give files multiple tags, but I can't figure out a way to search by multiple tags. The current search syntax in Finder/Spotlight is to use the tag:<some_tag_name>
query, however trying to search by multiple tags is not clear.
I have tried these options:
tag:<tag0>,<tag1>
tag:<tag0> <tag1>
For example, I have 3 files - foo, bar, baz - and 2 tags - alpha, beta. foo
is tagged with alpha
and beta
, bar
is tagged with only alpha
, and baz
is tagged with beta
.
I have listed several scenarios which should underscore my objective:
- A search of
tag:alpha,beta
should only returnfoo
since it's the only file with both tags. - A search of
tag:alpha
should returnfoo
andbar
- A search of
tag:beta
should returnfoo
andbaz
This should be a simple feature included but I can't quite figure out how to use it.
As I finished writing my own question, I tried another combination, tag:<tag0> tag:<tag1>
, and it worked! Seems like it's an implicit "AND" when you use it like this.
You can also apply boolean logic in Spotlight/Finder:
tag:<tag1> OR tag:<tag2>
tag:<tag3> AND <tag:4>
NOT tag:<tag5>