当前位置:网站首页>Es create a new index database and copy the old index library, practice pro test effective!
Es create a new index database and copy the old index library, practice pro test effective!
2020-11-06 21:40:00 【Architects who can drive】
Preface : Index library field encountered in project mapping The problem of mapping type mismatch , Need modification mapping Mapping type , So I thought about deleting the old mappings The redesign mappings Field type and copy data !
First step 、 Let's take a look at the old index library settings、mapping structure
GET /intpolicy/_mapping
GET /intpolicy/_settings?pretty
The second step 、 Take a look at the amount of data in the old index database and compare it after copying
GET /intpolicy/_search
The third step 、 Create a new index library Be careful settings、mapping Do not copy structure errors
PUT intpolicy?include_type_name=false
{
"settings" : {
"index" : {
"number_of_shards" : "1",
"provided_name" : "intpolicy",
"creation_date" : "1578638080477",
"analysis" : {
"analyzer" : {
"numanalyzer" : {
"pattern" : "|",
"type" : "pattern"
}
}
},
"number_of_replicas" : "0",
"uuid" : "cmouqXBLQiyFAJ5BNii8nw",
"version" : {
"created" : "6080599"
}
}
},
"mappings" : {
"_doc" : {
"properties" : {
"advanceTicketLatest" : {
"type" : "short"
},
"advantageType" : {
"type" : "keyword"
},
"arr" : {
"type" : "text"
}
}
}
}
}
The last step Copy the old index database data to the new index library
POST _reindex
{
"source": {
"index": "intpolicy2"
},
"dest": {
"index": "intpolicy"
}
}
版权声明
本文为[Architects who can drive]所创,转载请带上原文链接,感谢
边栏推荐
- 代码重构之法——方法重构分析
- Cloudquery v1.2.0 release
- Python basic variable type -- list analysis
- Common syntax corresponding table of mongodb and SQL
- The 4th China BIM (digital construction) manager Summit Forum will be held in Hangzhou in 2020
- How about small and medium-sized enterprises choose shared office?
- Small program introduction to proficient (2): understand the four important files of small program development
- Unity performance optimization
- 【涂鸦物联网足迹】涂鸦云平台全景介绍
- 超高频RFID医疗血液管理系统应用
猜你喜欢

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

ado.net and asp.net The relationship between

2020-08-15:什么情况下数据任务需要优化?

How does cglib implement multiple agents?

Zhou Jie: database system of East China Normal University
![[forward] how to view UserData in Lua](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[forward] how to view UserData in Lua

Filecoin has completed a major upgrade and achieved four major project progress!

es创建新的索引库并拷贝旧的索引库 实践亲测有效!

消防器材RFID固定资产管理系统

image operating system windows cannot be used on this platform
随机推荐
Helping financial technology innovation and development, atfx is at the forefront of the industry
事务的本质和死锁的原理
How to start the hidden preferences in coda 2 on the terminal?
Junit测试出现 empty test suite
A small goal in 2019 to become a blog expert of CSDN
How about small and medium-sized enterprises choose shared office?
Bitcoin once exceeded 14000 US dollars and is about to face the test of the US election
[self taught unity2d legendary game development] map editor
Some operations kept in mind by the front end foundation GitHub warehouse management
git远程库回退指定版本
An article will take you to understand SVG gradient knowledge
非易失性MRAM存储器应用于各级高速缓存
上海巨微专用蓝牙广播芯片
An article will introduce you to CSS3 background knowledge
磁存储芯片STT-MRAM的特点
The method of realizing high SLO on large scale kubernetes cluster
What is the purchasing supplier system? Solution of purchasing supplier management platform
Small program introduction to proficient (2): understand the four important files of small program development
list转换map(根据key来拆分list,相同key的value为一个list)
DC-1 target