当前位置:网站首页>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
边栏推荐
- 大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
- 【ElasticSearch搜索引擎】
- What if the front end doesn't use spa? - Hacker News
- ES6 learning notes (5): easy to understand ES6's built-in extension objects
- Flink's datasource Trilogy 2: built in connector
- An article will take you to understand CSS3 fillet knowledge
- electron 實現檔案下載管理器
- 文件过多时ls命令为什么会卡住?
- ERD-ONLINE 免费在线数据库建模工具
- Building a new generation cloud native data lake with iceberg on kubernetes
猜你喜欢

【转发】查看lua中userdata的方法

Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios

An article takes you to understand CSS3 picture border

Summary of front-end performance optimization that every front-end engineer should understand:

Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time

What knowledge do Python automated testing learn?

What are the common problems of DTU connection

Isn't data product just a report? absolutely wrong! There are university questions in this category

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

Ronglian completed US $125 million f round financing
随机推荐
ES6 learning notes (4): easy to understand the new grammar of ES6
Behind the first lane level navigation in the industry
Basic principle and application of iptables
Staying up late summarizes the key points of report automation, data visualization and mining, which is different from what you think
MongoDB与SQL常用语法对应表
事务的隔离级别与所带来的问题
只有1个字节的文件实际占用多少磁盘空间
Network programming NiO: Bio and NiO
To Lianyun analysis: why is IPFs / filecoin mining so difficult?
What are Devops
Uncle Bob: the software architecture is similar to a house. Object oriented is the structure of the house, and the water pipe is functional programming
How to understand Python iterators and generators?
Git rebase is in trouble. What to do? Waiting line
It's time for your financial report to change to a more advanced style -- financial analysis cockpit
如何在终端启动Coda 2中隐藏的首选项?
GUI engine evaluation index
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column
An article takes you to understand CSS3 picture border
ORA-02292: 违反完整约束条件 (MIDBJDEV2.SYS_C0020757) - 已找到子记录
Pn8162 20W PD fast charging chip, PD fast charging charger scheme