> For the complete documentation index, see [llms.txt](https://docs.mongoing.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mongoing.com/mongodb-crud-operations/text-search/text-search-languages.md).

# 文本索引语言

[文本索引](https://docs.mongodb.com/master/core/index-text/#index-feature-text) 和[`$text`](https://docs.mongodb.com/master/reference/operator/query/text/#op._S_text) 运算符可用于下列语言，并接受两个字母的ISO 639-1语言代码或语言名称的长形式:

| 语言名称         | ISO 639-1(双字母代码) |
| ------------ | ---------------- |
| `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`             |

> **\[success] Note**
>
> 如果指定语言值为\*\*“none”\*\*，则文本搜索使用简单的标记化，不包含停止词列表和词干分析。

另看：

[Specify a Language for Text Index](https://docs.mongodb.com/manual/tutorial/specify-language-for-text-index/)

译者：杨帅

校对：杨帅


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mongoing.com/mongodb-crud-operations/text-search/text-search-languages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
