> 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-apis/341suo-yin-api/geng-xin-suo-5f15-huo-53d6-3e-she-zhi.md).

# 更新索引/获取->设置(未完成)

## Update Indices Settings 更新索引设置

实时改变特定索引级别设置。

REST 方式 `/ _settings`(更新所有索引) 或`{index}/_settings`更新一个(或多个)索引设置。请求的主体包括更新设置,例如:

```
{
    "index" : {
        "number_of_replicas" : 4
    }
}
```

将副本的数量设置为4个。下面是一个curl的例子:

```
curl -XPUT 'localhost:9200/my_index/_settings' -d '
{
    "index" : {
        "number_of_replicas" : 4
    }
}'
```

可以在动态索引上动态更新的每个索引设置列表可以在索引模块([Index Modules](https://www.elastic.co/guide/en/elasticsearch/reference/5.2/index-modules.html))中找到。

### 批量索引的使用

在开始批量索引之前，使用：

```
curl -XPUT localhost:9200/test/_settings -d '{
    "index" : {
        "refresh_interval" : "-1"
    } }'
```

## Get Settings 获取设置


---

# 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-apis/341suo-yin-api/geng-xin-suo-5f15-huo-53d6-3e-she-zhi.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.
