How to solve - "too much text index for .." - mongodb error?

Getting this error and don’t know why, here is a snippet of a function that has 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 occurs in the mango shell.

+2
source share

All Articles