Hi Steeve,
sorry for the late response. Your answer helped to look at the problem from the different angle, but still, we did not manage to write performant query that is using more than one field at the $group._id, while using $lookup seems to be an overkill.