Question: How do you create a text index?
- `db.customers.createIndex({firstName, lastName})`
- `db.customers.createTextIndex({firstName, lastName})`
- `db.customers.createIndex({firstName: "text", lastName: "text"})`
- `db.customers.createText({firstName: 1, lastName: 1})`
Answer: The correct answer of the above question is Option C:`db.customers.createIndex({firstName: "text", lastName: "text"})`