当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- jenkins安装部署过程简记
- Helping financial technology innovation and development, atfx is at the forefront of the industry
- Python basic data type -- tuple analysis
- ES6 learning notes (4): easy to understand the new grammar of ES6
- An article will take you to understand CSS3 fillet knowledge
- ES6 learning notes (5): easy to understand ES6's built-in extension objects
- Hdu3974 assign the task segment tree DFS order
- To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
- 轻量型 GPU 应用首选 京东智联云推出 NVIDIA vGPU 实例
- Python basic variable type -- list analysis
猜你喜欢

2020 database technology conference helps technology upgrade

How to play sortable JS vuedraggable to realize nested drag function of forms

What is the purchasing supplier system? Solution of purchasing supplier management platform

实用工具类函数(持续更新)

Helping financial technology innovation and development, atfx is at the forefront of the industry

Junit测试出现 empty test suite

Unity performance optimization

ES6 learning notes (4): easy to understand the new grammar of ES6

Exclusive interview of guests at | 2020 PostgreSQL Asia Conference: Wang Tao

细数软件工程----各阶段必不可少的那些图
随机推荐
NAND FLASH的接口控制设计
How to manage the authority of database account?
git远程库回退指定版本
2020-09-03:裸写算法:回形矩阵遍历。
Filecoin has completed a major upgrade and achieved four major project progress!
Unexpected element.. required element
STM32F030K6T6兼容替换灵动MM32F031K6T6
The legality of IPFs / filecoin: protecting personal privacy from disclosure
ES中删除索引的mapping字段时应该考虑的点
Summary of front-end performance optimization that every front-end engineer should understand:
The isolation level of transaction and its problems
Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
预留电池接口,内置充放电电路及电量计,迅为助力轻松搞定手持应用
递归、回溯算法常用数学基础公式
Exclusive interview of guests at | 2020 PostgreSQL Asia Conference: Wang Tao
A concise tutorial for Nacos, ribbon and feign
What kind of music do you need to make for a complete game?
How to prepare for the system design interview
Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
An article taught you to use HTML5 SVG tags