Question: How do you create a text index?

  1. `db.customers.createIndex({firstName, lastName})`
  2. `db.customers.createTextIndex({firstName, lastName})`
  3. `db.customers.createIndex({firstName: "text", lastName: "text"})`
  4. `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"})`