$search in $lookup with MongoDB v6

Can anyone help me out with using $search in $lookup?

It works fine if I use a static string instead of searchId, but I’m not able to use a variable from the “let” definition block. Anyone knows how to resolve variables inside the $search function?

$lookup variables can only be referenced inside $expr and I don’t believe that’s supported in $search at the moment.

Oh no, that’s a pity. :frowning: