MongoDB Documentation, Release 3.0.4 Index All Fields Specify a Language for Text Index Specify the Default Language for a text Index Create a text Index for a Collection in Multiple Languages Chapter 8. Indexes 540 • The specified language in an embedded document override the language specified in an enclosing document or the default language for the index. db.collection.createIndex( { "$ ** ": "text" }, { name: "TextIndex" } ) db.quotes.createIndex( { content : "text" }, { default_language: "spanish" } ) Note: In order to drop a text index, use the index name. See Use the Index Name to Drop a text Index (page 542) for more information. The following example indexes any string value in the data of every field of every document in collection and names the index TextIndex : To allow for text search on all fields with string content, use the wildcard specifier ( $ $_{**}$) to index all fields that contain string content. This tutorial describes how to specify the default language associated with the text index (page 540) and also how to create text indexes for collections that contain documents in different languages (page 540). The default language associated with the indexed data determines the rules to parse word roots (i.e. stemming) and ignore stop words. The default language for the indexed data is english . To specify a different language, use the default_language option when creating the text index. See Text Search Languages (page 556) for the languages available for default_language . The following example creates for the quotes collection a text index on the content field and sets the default_language to spanish : Changed in version 2.6: Added support for language overrides within embedded documents. Specify the Index Language within the Document If a collection contains documents or embedded documents that are in different languages, include a field named language in the documents or embedded documents and specify as its value the language for that document or embedded document. MongoDB will use the specified language for that document or embedded document when building the text index: • The specified language in the document overrides the default language for the text index.