Mongodb – Mongo Atlas combine $search with match
I'm searching through a collection either by hard data (numbers, other values) with $match and operaters like $regex, $in, $eq, $size, $gte, etc. {'$match': {'$and': [{'isbn': {'$exists': 1}}, {'form': {'$in': ['BC']}}]}} With $facet I can count the found matches. For…