Using $search I think it’s better to use the “compound” operator in the $search aggregation, I think using $match after $search the the compound indexes aren’t used