I wanted to be as descriptive as possible in the title but here’s the problem I have. This is a bit strange.
So, I created an agent that in principle should gather all the notes containing the words ‘Drinka’ and ‘Persian’. If I construct the query as follows, it doesn’t yield any results.
$Text.contains("Drinka") & Text.contains("Persian");
If I construct it in any of these ways, though, I do get the expected results (there is a single note that contains both words):
$Text.contains("\bDrinka\b") & Text.contains("Persian"); $Text.contains("Drinka") & Text.contains("\bPersian\b");
I’m really puzzled. Why would indicating beginning/end of word with regular expressions make any difference? Why does one even need to use regex in this case if the strings in the query actually happen to match existing strings in the texts?