> For the complete documentation index, see [llms.txt](https://xiaoxiami.gitbook.io/elasticsearch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xiaoxiami.gitbook.io/elasticsearch/ji-chu/33-analysisfen-679029/334-tokenizersff08-fen-ci-qi-ff09/keyword-tokenizerff08-guan-jian-ci-fen-ci-qi-ff09.md).

# Keyword Tokenizer（关键词分词器）

关键字记号赋予器是一个“等待”记号赋予器接受任何文本和输出给出相同的文本作为一个单独的项。

`keyword` analyze(关键字分析器)是一个“noop”分析器，它将整个输入字符串作为单个令牌返回。它可以结合Token filters(词语过滤器)输出正常化,如小写电子邮件地址。

## **输出示例**

```
POST _analyze
{
  "tokenizer": "keyword",
  "text": "New York"
}
```

上面的句子会产生以下结果:

```
[ New York ]
```

## 配置

`keyword`tokenizer 接受以下参数:

| `buffer_size` | 字符读入缓冲一词的数量在一个单一的通过。默认为256。这个词缓冲区将增加这个大小,直到所有的文本被消耗。建议不要更改此设置。 |
| ------------- | -------------------------------------------------------------- |


---

# 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:

```
GET https://xiaoxiami.gitbook.io/elasticsearch/ji-chu/33-analysisfen-679029/334-tokenizersff08-fen-ci-qi-ff09/keyword-tokenizerff08-guan-jian-ci-fen-ci-qi-ff09.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
