When you create a text index in MongoDB, the index uses a default language of english.
The default language determines the rules to parse word roots (i.e. stemming) and ignore stop words.
However, you can change the default language if required.
You can also specify a language at the document level, and even at the subdocument level. The default language will only be used if a language hasn’t been specified at the document or subdocument level.
This article presents examples of specifying a language for a text index.