For documents that do not contain the language field, the index uses the default language, which is English. 

Use any Field to Specify the Language for a Document To use a field with a name other than language , include the language_override option when creating the index. 

For example, give the following command to use idioma as the field name instead of language : 

db.quotes.createIndex( { quote : "text" }, { language_override: "idioma" } ) 

The documents of the quotes collection may specify a language with the idioma field: 

{ _id: 1, idioma: "portuguese", quote: "A sorte protege os audazes" } { _id: 2, idioma: "spanish", quote: "Nada hay más surrealista que la realidad." } { _id: 3, idioma: "english", quote: "is this a dagger which I see before me" } 

## Specify Name for text Index 

The default name for the index consists of each indexed field name concatenated with _text . For example, the following command creates a text index on the fields content , users.comments , and users.profiles : 

db.collection.createIndex( { content: "text", "users.comments": "text", "users.profiles": "text" } ) 

The default name for the index is: 

"content_text_users.comments_text_users.profiles_text" 

The text index, like other indexes, must fall within the index name length limit . 

## Specify a Name for text Index 

To avoid creating an index with a name that exceeds the index name length limit , you can pass the name option to the db.collection.createIndex() method: 

db.collection.createIndex( { content: "text", "users.comments": "text", "users.profiles": "text" }, { name: "MyTextIndex" } ) 

## Use the Index Name to Drop a text Index 

Whether the text (page 500) index has the default name or you specified a name for the text (page 500) index, to drop the text (page 500) index, pass the index name to the db.collection.dropIndex() method. 

