Open jcollado opened 8 years ago
Can you post some code that causes the error?
I am able to trigger this error when I do the following in my schema:
new SimpleSchema(
{
type: String,
optional: true,
index: 'text'
},
setting: {
type: String,
optional: true,
index: 'text'
},
brand: {
type: String,
optional: true,
index: 'text'
});
Would be able to get this fixed to be able to search multiple indexes.
When trying to create a text index for multiple fields in a collection, the index creation fails.
My guess is that instead of creating one text index with multiple fields, the creation of multiple text indexes is attempted and that fails because only one text field is allowed per collection in MongoDB.