当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- An article will introduce you to CSS3 background knowledge
- 行为型模式之备忘录模式
- GitHub: the foundation of the front end
- How to make characters move
- What is the meaning of sector sealing of filecoin mining machine since the main network of filecoin was put online
- Summary of common SQL statements
- 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
- Road to simple HTML + JS to achieve the most simple game Tetris
- Basic usage of Vue codemirror: search function, code folding function, get editor value and verify in time
猜你喜欢
NAND FLASH的接口控制设计
What the hell is fastthreadlocal? The existence of ThreadLocal!!
An article takes you to understand CSS pagination examples
Introduction to Huawei cloud micro certification examination
2020-09-09:裸写算法:两个线程轮流打印数字1-100。
image operating system windows cannot be used on this platform
How to play sortable JS vuedraggable to realize nested drag function of forms
To solve the problem that the data interface is not updated after WPF binding set
The role of theme music in games
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
随机推荐
The native API of the future trend of the front end: web components
All the way, I was forced to talk about C code debugging skills and remote debugging
Stickinengine architecture 11 message queue
What kind of music do you need to make for a complete game?
git远程库回退指定版本
Code generator plug-in and creator preform file analysis
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:曾文旌
The isolation level of transaction and its problems
What grammar is it? ]
Summary of front-end performance optimization that every front-end engineer should understand:
Diamond standard
Python basic variable type -- list analysis
The essence of transaction and the principle of deadlock
谷歌浏览器实现视频播放加速功能
ES6 learning notes (5): easy to understand ES6's built-in extension objects
The method of realizing high SLO on large scale kubernetes cluster
[learning] interface test case writing and testing concerns
Contract trading system development | construction of smart contract trading platform
EOS founder BM: what's the difference between UE, UBI and URI?
A small goal in 2019 to become a blog expert of CSDN