Mongo error 16633 text search not enabled

Error occurs when creating a ‘text’ index in Mongo to enable text search on a field, e.g., db.collection.ensureIndex( { fieldname: “text” }),  but textSearchEnabled is not enable in mongod. Try to run mongod with textSearchEnable=true

mongod –setParameter textSearchEnabled=true

or add textSearchEnabled=true in mongod.conf