当前位置:网站首页>ES中删除索引的mapping字段时应该考虑的点
ES中删除索引的mapping字段时应该考虑的点
2020-11-06 21:45:00 【会开车的架构师】
- 创建新索引
- 新索引创建新mapping
- 原索引导出数据到新索引
- 新索引创建原索引一致的别名
- 删除原索引
针对于第四步:这个就要用到索引别名了,如果你最开始建索引的时候没有考虑设计索引别名,那就杯具了。
你可以把索引的名称设置成name_v1 别名设置为name,然后代码里面访问搜索的时候连接的其实是别名name;
这样当你以后索引结构调整需要重新创建的时候,就可以在新建一个索引name_v2,然后把数据初始化完成之后,把原来索引的别名去掉,把name_v2的别名设置成name,这样代码就不用改动了。
版权声明
本文为[会开车的架构师]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4629483/blog/4529698
边栏推荐
- hdu3974 Assign the task線段樹 dfs序
- 每个大火的“线上狼人杀”平台,都离不开这个新功能
- Behind the record breaking Q2 revenue of Alibaba cloud, the cloud opening mode is reshaping
- CloudQuery V1.2.0 版本发布
- An article will take you to understand CSS3 fillet knowledge
- Building a new generation cloud native data lake with iceberg on kubernetes
- JVM内存分配 -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
- 消息队列(MessageQueue)-分析
- To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
- How to turn data into assets? Attracting data scientists
猜你喜欢
事件监听问题
The importance of big data application is reflected in all aspects
Behind the first lane level navigation in the industry
image operating system windows cannot be used on this platform
Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
C + + and C + + programmers are about to be eliminated from the market
The AI method put forward by China has more and more influence. Tianda et al. Mined the development law of AI from a large number of literatures
华为Mate 40 系列搭载HMS有什么亮点?
An article will take you to understand CSS alignment
ES6 learning notes (4): easy to understand the new grammar of ES6
随机推荐
一路踩坑,被迫聊聊 C# 代码调试技巧和远程调试
Asp.Net Core learning notes: Introduction
Flink's datasource Trilogy 2: built in connector
The method of realizing high SLO on large scale kubernetes cluster
nacos、ribbon和feign的簡明教程
視覺滾動[反差美]
Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
jenkins安装部署过程简记
Outsourcing is really difficult. As an outsourcer, I can't help sighing.
解决 WPF 绑定集合后数据变动界面却不更新的问题
In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
What knowledge do Python automated testing learn?
消息队列(MessageQueue)-分析
Staying up late summarizes the key points of report automation, data visualization and mining, which is different from what you think
【字节跳动 秋招岗位开放啦】Ohayoo!放学别走,我想约你做游戏!!!
What if the front end doesn't use spa? - Hacker News
Look! Internet, e-commerce offline big data analysis best practice! (Internet disk link attached)
递归、回溯算法常用数学基础公式
事务的隔离级别与所带来的问题
Unity性能优化整理