当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- What grammar is it? ]
- Visual rolling [contrast beauty]
- Stickinengine architecture 12 communication protocol
- Event monitoring problem
- 2020-08-19:TCP是通过什么机制保障可靠性的?
- image operating system windows cannot be used on this platform
- Zero basis to build a web search engine of its own
- Vue communication and cross component listening state Vue communication
- The 4th China BIM (digital construction) manager Summit Forum will be held in Hangzhou in 2020
- Metersphere developer's Manual
猜你喜欢

嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:曾文旌

CloudQuery V1.2.0 版本发布

ES中删除索引的mapping字段时应该考虑的点

JVM memory allocation - xms128m - xmx512m - XX: permsize = 128M - XX: maxpermsize = 512M

Code generator plug-in and creator preform file analysis
![[byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[byte jumps, autumn recruitment Posts open] ohayoo! Don't leave after school, I want to ask you to play games!!!

The role of theme music in games

统计项目代码行数

Using an example to understand the underlying processing mechanism of JS function

How to manage the authority of database account?
随机推荐
Python basic data type -- tuple analysis
Metersphere developer's Manual
2020-08-15:什么情况下数据任务需要优化?
大数据处理黑科技:揭秘PB级数仓GaussDB(DWS) 并行计算技术
An article takes you to understand CSS gradient knowledge
An article will introduce you to HTML tables and their main attributes
2020-08-14:数据任务的执行引擎用的哪些?
【涂鸦物联网足迹】涂鸦云平台全景介绍
Python basic variable type -- list analysis
How to manage the authority of database account?
From overseas to China, rancher wants to do research on container cloud market
Common syntax corresponding table of mongodb and SQL
实用工具类函数(持续更新)
Zero basis to build a web search engine of its own
谷歌浏览器实现视频播放加速功能
Why is quicksort so fast?
消防器材RFID固定资产管理系统
Flink's datasource Trilogy: direct API
STM32F030F4P6兼容灵动微MM32F031F4P6
Stickinengine architecture 11 message queue