Hi there
I’d like to do a query of blocks that contain some certain keywords, for example key_1 or key_2.
Org mode, property block is defined as flowing:
This will return the search results.
What I hope to achieve is that if it contains A or B, or both A and B, it can be retrieved.
Can someone assist me?Thanks.
But the result is that almost all blocks are returned, blocks that do not contain the “key_1” and “Key_2” and blocks that contain other keywords are returned.
I managed to get your error message, after changing the values to page refs. As @Siferiax said, should be one (your last query, but with plain text) or the other (below), not both. This is with page refs:
Apologies for giving a statement that didn’t work lol.
Here’s a full query that works whether you have plain text or references.
I convert ?t to a string so the string search works.
(when it contains page refs it is actually not a string, and causes errors when you try to do string operations)