Hi

While attempting to create a text index on embedded multi language document, I have an error with unsupported language (some documents embeds polish translation).

Reading the documentation, I though that it would be possible to specify a default_language for unsupported language as follows

db.myCollection.createIndex( { "descriptiveInformations.title" : "text", "descriptiveInformations.description": "text" }, { language_override: "lang", default_language: "none", weights: { "descriptiveInformations.title" : 5, "descriptiveInformations.description": 2 }, name: "my_search_idx" } )

I would have thought that default_language would have been used when mongo fails to resolve language while reading embedded document.

Am I wrong?

I run in an old mongo version 5) and may upgrade provided that it solves my issue.

Thanks