当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 递归、回溯算法常用数学基础公式
- window系统 本机查找端口号占用方法
- What is the meaning of sector sealing of filecoin mining machine since the main network of filecoin was put online
- The role of theme music in games
- 大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
- A small goal in 2019 to become a blog expert of CSDN
- Exclusive interview of guests at | 2020 PostgreSQL Asia Conference: Wang Tao
- An article takes you to understand CSS3 picture border
- From overseas to China, rancher wants to do research on container cloud market
- Can you do it with only six characters?
猜你喜欢
![[learning] interface test case writing and testing concerns](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[learning] interface test case writing and testing concerns

ORA-02292: 违反完整约束条件 (MIDBJDEV2.SYS_C0020757) - 已找到子记录

An article will take you to understand CSS alignment

How to start the hidden preferences in coda 2 on the terminal?

list转换map(根据key来拆分list,相同key的value为一个list)

打工人好物——磨炼钢铁意志就要这样高效的电脑

What is the meaning of sector sealing of filecoin mining machine since the main network of filecoin was put online

2020-08-14:数据任务的执行引擎用的哪些?

Pn8162 20W PD fast charging chip, PD fast charging charger scheme

The Interpreter pattern of behavior pattern
随机推荐
磁存储芯片STT-MRAM的特点
Filecoin has completed a major upgrade and achieved four major project progress!
Exclusive interview of guests at | 2020 PostgreSQL Asia Conference: Wang Tao
All the way, I was forced to talk about C code debugging skills and remote debugging
An article takes you to understand CSS pagination examples
An article takes you to understand CSS3 picture border
2020 database technology conference helps technology upgrade
How does filecoin's economic model and future value support the price of fil currency breaking through thousands
es创建新的索引库并拷贝旧的索引库 实践亲测有效!
2020-08-29:进程线程的区别,除了包含关系之外的一些区别,底层详细信息?
Using an example to understand the underlying processing mechanism of JS function
[learning] interface test case writing and testing concerns
Look! Internet, e-commerce offline big data analysis best practice! (Internet disk link attached)
Why is quicksort so fast?
Road to simple HTML + JS to achieve the most simple game Tetris
Some operations kept in mind by the front end foundation GitHub warehouse management
ES6 learning notes (2): teach you to play with class inheritance and class objects
2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
非易失性MRAM存储器应用于各级高速缓存
An article will introduce you to HTML tables and their main attributes