Hi,
im trying to use regex using case insensitive but can’t figure out how to use it,
this is my currently aggregation:
use("Marketplace")
db.Users.aggregate([
{
"$search": {
"regex": {
"path": "Name",
"query": "carl",
"allowAnalyzedField": true
}
}
}
])
I want to get results like Carl, carl, CARL