问题
Getting this error and don't know why, here is the snippet of the function that deals with mongodb full-text search:
...
db.collection.ensureIndex({ description: 'text' }, { name: 'TextIndex' });
db.collection.runCommand('text', { search: 'my query' }, function (err, res) {
console.log(res);
// {
// "message": "failed to search items for user by query",
// "error": "too many text index for: ..
// }
});
The same problem appears in mongo shell as well..
来源:https://stackoverflow.com/questions/18385853/how-to-solve-too-many-text-index-for-mongodb-error