reindex

  1. 인덱스의 mapping을 수정
  2. 이전 버전에서 최신 버전으로 마이그레이션 해야 할 때
  3. index의 이름 변경이 필요할 때

Copies documents from a source to a destination.

POST _reindex
{
  "source": {
    "index": "my-index-000001"
  },
  "dest": {
    "index": "my-new-index-000001"
  }
}

다른 ES 클러스터의 데이터를 reindex 하기

경우에 따라서는 신규 클러스터를 운영해야 해서, 클러스터 내부에서 새롭게 reindex

https://findstar.pe.kr/2018/07/07/elasticsearch-reindex/