在MongoDB中,如何创建文本索引?( )
db.customers.createIndex({firstName, lastName})
db.customers.createTextIndex({firstName, lastName})
db.customers.createIndex({firstName:
db.customers.createText({firstName: 1, lastName: 1})
在MongoDB中,如何创建文本索引?( )
db.customers.createIndex({firstName, lastName})
db.customers.createTextIndex({firstName, lastName})
db.customers.createIndex({firstName:
db.customers.createText({firstName: 1, lastName: 1})