Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumMongoDBtext and $regex searchSingle-choice MCQ

Given a non-anchored, case-insensitive `$regex` query against a field with a plain (non-collation) index, what is the index behavior?

// Index: { name: 1 } (default collation) db.users.find({ name: { $regex: /smith/i } })