Docs HomeMongoDB Manual

Text Search Languages文本搜索语言

Note

This page describes text search capabilities for self-managed (non-Atlas) deployments. 本页介绍了用于自我管理(非Atlas)部署的文本搜索功能。For data hosted on MongoDB Atlas, MongoDB offers an improved full-text search solution, Atlas Search.对于托管在MongoDB Atlas上的数据,MongoDB提供了一个改进的全文搜索解决方案Atlas search

The text index and the $text operator may be used with the following languages, and accepts either the two-letter ISO 639-1 language code or the long form of the language name:文本索引$text运算符可以与以下语言一起使用,并接受两个字母的ISO 639-1语言代码或语言名称的长形式:

Language Name语言名称ISO 639-1 (Two letter codes)
danishda
dutchnl
englishen
finnishfi
frenchfr
germande
hungarianhu
italianit
norwegiannb
portuguesept
romanianro
russianru
spanishes
swedishsv
turkishtr

If you specify a default_language value of none, then the text index parses through each word in the field, including stop words, and ignores suffix stemming.如果指定default_languagenone,则文本索引将解析字段中的每个单词,包括停止词,并忽略后缀词干。