But the logic works as an OR statement - and so I get results for journal, or gratitude, which I don’t want, as well as the journal AND gratitude results that I do want…
Thanks! This matches the first type of my gratitude journal structure, but not the second - i.e. it doesn’t match where I have a page tag. Maybe I’m mistaken with how page tags work…
Not sure if you’ve figured out an answer (please update if so!), but I think I can explain a bit as to why you’re having trouble matching both.
You’re starting with a block search in your query, then looking for blocks that are tagged both journal AND gratitude. The hierarchy inherits tags, so your first case is returned.
The problem with the second is that the block you’re targeting, beneath gratitude, is NOT tagged with journal. That tag only applies to the page block (basically the title).
So you would either need a query that returns “the blocks in journal pages that are tagged gratitude”, or restructure those pages so the blocks you want have both tags.