Just to point out, do not name a field "language" if you are planning to create an index

By checking your code I just figured out what the issue was. I was defining the index type as “text”, instead of “1”. If I create the index as you did, I don’t have any problem by naming my field as “language”.

I guess this is what happens when you start messing around with software before understanding it.

Thank you again. I am not sure if I should delete this post, or leave it for people like me.

2 Likes