Hello, I have a collection where documents can be marked as deleted by having the
_deletedOn field set to the date/time that they were deleted. Documents that aren’t deleted either don’t have this field or the value for it is null. I’ve read through the documentation but there doesn’t seem to be anything for specifically omitting results for which a path exists or is non-null.
I’m trying to avoid introducing a separate $match stage for search results but it seems that I’ll have to either do that or filter the results after the query returns. Is there a way to do this within the $search pipeline stage?