I’ve been experimenting with query and limiting the search to a fact set, but I can’t really seem to get it to work as I expected.
Say I have a set of facts in @10, then my intention/expectation for the statement
@11 = ^query(myqueryname ? surname ? 1 @10)
is to only consider the facts in set 10 - assuming that I can craft the right query commands for “myqueryname”.
But that is where I’m having trouble in that I can’t quite get the commands right. Well that’s not quite true as I got this to work (after a lot of trial and error and debugging).
query: myqueryname "1fmf 2vt: queue fe : match q1 v2"
@11 = ^query(myqueryname ? surname ? 1 @10 ? ? @10)
but this doesn’t feel clean as I wasn’t expecting to have to use the match parameter.
Are my expectations too high?
(Actually in my final scenario, I do know the subject, so I can use the direct_sv query, so this is more of an academic question at the moment).