This stored template is enough for most searches I do for books containing Notes. I've named it bwn (short for books with notes) then I can do searches like:
PHP Code:
template:"""program: bwn('authors', 'born in')#@#:b:yes""" and template:"""program: bwn('authors', 'november 30')#@#:b:yes"""
However, sometimes I miss the NEAR operator, present in the Notes Browser, which can do some specific queries like the one in the screenshot. If I press Ctrl + A, all results get selected. But when I click Search books, it only returns the books that contain the last selected line in the list of results. I wish it could return all of them.
I've tried restricting the search results to author notes but it didn't work.