My friend's app was designed to use MongoDB indexes. Everything was fine while he was developing locally, but once he moved his code to the hosting provider, the code fails:
db.createIndex('collections', {title:"text", description:"text"}, function(err, indexName) {
console.log("8. index name: " + indexName);
});
The error message is "index creation failed"
Provider says this is because they do not upgrade MongoDB to 2.6, their version is 2.4 and they have no plans to upgrade. I looked into MongoDB website, but the Indexes section does not mention that indexes are not available until 2.6. It only says that 2.6 has some extra features. So what's going on here, something wrong with this code or is really MongoDB not supporting indexes until 2.6, how could that be, or we are doing something wrong, what is the option to have a fast search with MongoDB 2.4?