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语言代码或语言名称的长形式:
ISO 639-1 (Two letter codes) | |
---|---|
danish | da |
dutch | nl |
english | en |
finnish | fi |
french | fr |
german | de |
hungarian | hu |
italian | it |
norwegian | nb |
portuguese | pt |
romanian | ro |
russian | ru |
spanish | es |
swedish | sv |
turkish | tr |
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_language
值none
,则文本索引将解析字段中的每个单词,包括停止词,并忽略后缀词干。
Tip