1. Temp index 생성
PUT users_temp
2. Temp index에 타입 Mapping
PUT users_temp/_mapping
{
"properties": {
"location": {
"type": "geo_point"
}
}
}
3. Re-index를 Temp index에 실행
POST _reindex
{
"source": {
"index": "users"
},
"dest": {
"index": "users_temp"
}
}
4. User index 삭제
DELETE /users
5. 다시 User index 생성
PUT users
6. User index mapping
PUT users/_mapping
{
"properties": {
"location": {
"type": "geo_point"
}
}
}
7. Re-index를 User index 실행
POST _reindex
{
"source": {
"index": "users_temp"
},
"dest": {
"index": "users"
}
}
8. Temp index 삭제
DELETE /users_temp
'DataPipeline > Elasticsearch' 카테고리의 다른 글
Logstash - Json, Mutate, Roby, Date (0) | 2024.11.26 |
---|---|
Logstach - dissect, grok 필터 예제 (0) | 2024.11.13 |
Elasticsearch - index template (0) | 2023.03.27 |
Elasticsearch - Opendistro Kibana 유저 확인, 추가, 삭제 (0) | 2023.03.26 |
Elasticsearch - Opendistro 와 Kibana 설치 (0) | 2023.03.26 |