- db.customers.createIndex({firstName, lastName})
- db.customers.createTextIndex({firstName, lastName})
- db.customers.createIndex({firstName: “text”, lastName: “text”})
- db.customers.createText({firstName: 1, lastName: 1})
How do you create a text index?
June 25, 2021June 25, 2021
0 Comment