当前位置:网站首页>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
边栏推荐
- html+vue.js 實現分頁可相容IE
- Vue communication and cross component listening state Vue communication
- 【自学unity2d传奇游戏开发】如何让角色动起来
- Ronglian completed US $125 million f round financing
- (1) ASP.NET Introduction to core3.1 Ocelot
- How does filecoin's economic model and future value support the price of fil currency breaking through thousands
- Filecoin has completed a major upgrade and achieved four major project progress!
- 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
- StickEngine-架构12-通信协议
- Outsourcing is really difficult. As an outsourcer, I can't help sighing.
猜你喜欢

Flink's datasource Trilogy 2: built in connector

CCR coin frying robot: the boss of bitcoin digital currency, what you have to know

How to turn data into assets? Attracting data scientists

CloudQuery V1.2.0 版本发布

一路踩坑,被迫聊聊 C# 代码调试技巧和远程调试

ERD-ONLINE 免费在线数据库建模工具

Use modelarts quickly, zero base white can also play AI!

给字节的学姐讲如何准备“系统设计面试”

ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column

【学习】接口测试用例编写和测试关注点
随机推荐
StickEngine-架构12-通信协议
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
What if the front end doesn't use spa? - Hacker News
C# 调用SendMessage刷新任务栏图标(强制结束时图标未消失)
【:: 是什么语法?】
如何对数据库账号权限进行精细化管理?
Digital city responds to relevant national policies and vigorously develops the construction of digital twin platform
只有1个字节的文件实际占用多少磁盘空间
检测证书过期脚本
Contract trading system development | construction of smart contract trading platform
Chainlink brings us election results into blockchain everipedia
Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
JNI-Thread中start方法的呼叫與run方法的回撥分析
Bitcoin once exceeded 14000 US dollars and is about to face the test of the US election
意派Epub360丨你想要的H5模板都在这里,电子书、大转盘、红包雨、问卷调查……
Read the advantages of Wi Fi 6 over Wi Fi 5 in 3 minutes
Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?
游戏开发中的新手引导与事件管理系统
【自学unity2d传奇游戏开发】地图编辑器
常用SQL语句总结