10
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

elasticsearchでindexの設定を更新する

Posted at
PUT /some_index
{
  "settings": {...}
}

としてインデックスを作成後、

PUT /some_index/_settings
{...}

で設定の更新ができると思ったが、errorが発生し更新できなかった。

手順

まず、indexをcloseする必要がある。

PUT /some_index/_close

これで、あとは以下のように更新ができる。

PUT /some_index/_settings
{...}

終わったらopenする。

PUT /some_index/_open
10
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?