当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- NAND FLASH的接口控制设计
- To Lianyun analysis: why is IPFs / filecoin mining so difficult?
- Unexpected element.. required element
- Take you to learn the new methods in Es5
- 谷歌浏览器实现视频播放加速功能
- [byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!
- Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
- 实用工具类函数(持续更新)
- Markdown tricks
- An article taught you to download cool dog music using Python web crawler
猜你喜欢

Qt音视频开发46-视频传输UDP版

An article will take you to understand CSS3 fillet knowledge

To solve the problem that the data interface is not updated after WPF binding set

Why is the LS command stuck when there are too many files?

image operating system windows cannot be used on this platform

The 4th China BIM (digital construction) manager Summit Forum will be held in Hangzhou in 2020

【涂鸦物联网足迹】物联网基础介绍篇

The isolation level of transaction and its problems

ado.net and asp.net The relationship between

意外的元素..所需元素..
随机推荐
Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
MRAM高速缓存的组成
DC-1 target
Python basic data type -- tuple analysis
Python basic variable type -- list analysis
STM32F030K6T6兼容替换灵动MM32F031K6T6
迅为-iMX6ULL开发板上配置AP热点
谷歌浏览器实现视频播放加速功能
Cloudquery v1.2.0 release
ES6 learning notes (3): teach you to use js object-oriented thinking to realize the function of adding, deleting, modifying and checking tab column
jenkins安装部署过程简记
Using iceberg on kubernetes to create a new generation of cloud original data Lake
What the hell is fastthreadlocal? The existence of ThreadLocal!!
With this artifact, quickly say goodbye to spam messages
Description of phpshe SMS plug-in
行为型模式之备忘录模式
What grammar is it? ]
PHP application docking justswap special development kit【 JustSwap.PHP ]
An article will take you to understand SVG gradient knowledge
统计项目代码行数