当前位置:网站首页>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
边栏推荐
- Flink's datasource Trilogy 2: built in connector
- An article takes you to understand CSS pagination examples
- DC-1靶機
- [efficiency optimization] Nani? Memory overflow again?! It's time to sum up the wave!!
- The legality of IPFs / filecoin: protecting personal privacy from disclosure
- What are manufacturing and new automation technologies?
- FastThreadLocal 是什么鬼?吊打 ThreadLocal 的存在!!
- ES6 learning notes (5): easy to understand ES6's built-in extension objects
- What is the purchasing supplier system? Solution of purchasing supplier management platform
- es创建新的索引库并拷贝旧的索引库 实践亲测有效!
猜你喜欢
Network security engineer Demo: the original * * is to get your computer administrator rights! [maintain]
A small goal in 2019 to become a blog expert of CSDN
Helping financial technology innovation and development, atfx is at the forefront of the industry
How to hide part of barcode text in barcode generation software
Flink's datasource Trilogy 2: built in connector
From overseas to China, rancher wants to do research on container cloud market
美团内部讲座|周烜:华东师范大学的数据库系统研究
FastThreadLocal 是什么鬼?吊打 ThreadLocal 的存在!!
It's time for your financial report to change to a more advanced style -- financial analysis cockpit
【自学unity2d传奇游戏开发】地图编辑器
随机推荐
【转发】查看lua中userdata的方法
2020年第四届中国 BIM (数字建造)经理高峰论坛即将在杭举办
大会倒计时|2020 PostgreSQL亚洲大会-中文分论坛议程安排
Interpretation of Cocos creator source code: engine start and main loop
To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
es创建新的索引库并拷贝旧的索引库 实践亲测有效!
The importance of big data application is reflected in all aspects
What is the purchasing supplier system? Solution of purchasing supplier management platform
nacos、ribbon和feign的簡明教程
Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
Share with Lianyun: is IPFs / filecoin worth investing in?
Building a new generation cloud native data lake with iceberg on kubernetes
How does filecoin's economic model and future value support the price of fil currency breaking through thousands
Live broadcast preview | micro service architecture Learning Series live broadcast phase 3
面试官: ShardingSphere 学一下吧
Outsourcing is really difficult. As an outsourcer, I can't help sighing.
Ronglian completed US $125 million f round financing
StickEngine-架构12-通信协议
Isn't data product just a report? absolutely wrong! There are university questions in this category
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column