My collection is:
{ "Name" : "Bhanu"}
when i execute the below query, will it returns the above doc("Name" : "Bhanu"
)?
db.coll.find({"Name" : "BHANU"}).collation({ locale: 'en', strength: 2 })
Surprisingly it was returning the result ("Name" : "Bhanu"
) even though that i passed the parameter in upper or lower case like "BHANU" or "bhanu" .
My question is, how come that i was getting the result without creating the case insensitive index ? Can someone explain. Thanks in advance.