当前位置:网站首页>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
边栏推荐
- Filecoin has completed a major upgrade and achieved four major project progress!
- Contract trading system development | construction of smart contract trading platform
- To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
- How does filecoin's economic model and future value support the price of fil currency breaking through thousands
- Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?
- 【转发】查看lua中userdata的方法
- GUI engine evaluation index
- 理解格式化原理
- To Lianyun analysis: why is IPFs / filecoin mining so difficult?
- Markdown tricks
猜你喜欢

CloudQuery V1.2.0 版本发布

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

Git rebase is in trouble. What to do? Waiting line

Look! Internet, e-commerce offline big data analysis best practice! (Internet disk link attached)

ES6 learning notes (2): teach you to play with class inheritance and class objects

Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?

An article will take you to understand CSS3 fillet knowledge

The legality of IPFs / filecoin: protecting personal privacy from disclosure

Staying up late summarizes the key points of report automation, data visualization and mining, which is different from what you think

Small program introduction to proficient (2): understand the four important files of small program development
随机推荐
解决 WPF 绑定集合后数据变动界面却不更新的问题
JVM内存分配 -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
统计项目代码行数
【字节跳动 秋招岗位开放啦】Ohayoo!放学别走,我想约你做游戏!!!
What knowledge do Python automated testing learn?
Bitcoin once exceeded 14000 US dollars and is about to face the test of the US election
新建一个空文件占用多少磁盘空间?
開源一套極簡的前後端分離專案腳手架
(2) ASP.NET Core3.1 Ocelot routing
Xmppmini project details: step by step from the principle of practical XMPP technology development 4. String decoding secrets and message package
Try to build my mall from scratch (2): use JWT to protect our information security and perfect swagger configuration
华为云微认证考试简介
Tron smart wallet PHP development kit [zero TRX collection]
Contract trading system development | construction of smart contract trading platform
Introduction to Google software testing
Diamond standard
Vue communication and cross component listening state Vue communication
electron 實現檔案下載管理器
An article will introduce you to CSS3 background knowledge
What are the common problems of DTU connection