I'm trying to use $text search inside $or.
await Creators.aggregate([
{$match: {
$or: [
{ $creatorId: { $in: [407, 409] } },
{ $text: { $search: "Michael"} } ]
} }
])
The query won't work. But the $text without $or works fine.
Does anyone have an idea about this? Thank you.