Is it possible to ignore case sensitive string queries? Say I have the multiple nodes with “Climate Trace”, “Climate TRACE”, “climatetrace”. How do I write the correct query to make sure I don’t miss any nodes? Is there regex capability?
{{query “climate trace”}}
Advanced queries support regex.
Here’s the query for you:
#+BEGIN_QUERY
{:title "Climate Trace"
:query
[:find (pull ?b [*])
:in $ ?input
:where
[(str "(?i)" ?input) ?pattern]
[?b :block/content ?c]
[(re-pattern ?pattern) ?q]
[(re-find ?q ?c)]]
:inputs ["climate trace"]
}
#+END_QUERY
1 Like