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
댓글 없음:
댓글 쓰기