当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Axios learning notes (2): easy to understand the use of XHR and how to package simple Axios
- 轻量型 GPU 应用首选 京东智联云推出 NVIDIA vGPU 实例
- Share with Lianyun: is IPFs / filecoin worth investing in?
- Can you do it with only six characters?
- Code generator plug-in and creator preform file analysis
- Cloudquery v1.2.0 release
- The isolation level of transaction and its problems
- [elastic search engine]
- What grammar is it? ]
- How does filecoin's economic model and future value support the price of fil currency breaking through thousands
猜你喜欢

2020-08-20:GO语言中的协程与Python中的协程的区别?

An article takes you to understand CSS gradient knowledge

C calls SendMessage to refresh the taskbar icon (the icon does not disappear at the end of forcing)

统计项目代码行数

Code generator plug-in and creator preform file analysis

超高频RFID医疗血液管理系统应用

Description of phpshe SMS plug-in
![[self taught unity2d legendary game development] map editor](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[self taught unity2d legendary game development] map editor

Common syntax corresponding table of mongodb and SQL

2020-08-19:TCP是通过什么机制保障可靠性的?
随机推荐
打工人好物——磨炼钢铁意志就要这样高效的电脑
Why is quicksort so fast?
How about small and medium-sized enterprises choose shared office?
To solve the problem that the data interface is not updated after WPF binding set
行为型模式之解释器模式
磁存储芯片STT-MRAM的特点
STM32F030F4P6兼容灵动微MM32F031F4P6
ES6 learning notes (2): teach you to play with class inheritance and class objects
What is the purchasing supplier system? Solution of purchasing supplier management platform
A small goal in 2019 to become a blog expert of CSDN
Vue communication and cross component listening state Vue communication
谷歌浏览器实现视频播放加速功能
2020-09-04:函数调用约定了解么?
Code generator plug-in and creator preform file analysis
Metersphere developer's Manual
Common syntax corresponding table of mongodb and SQL
CloudQuery V1.2.0 版本发布
2020-08-24:什么是小文件?很多小文件会有什么问题?很多小文件怎么解决?(大数据)
The Interpreter pattern of behavior pattern
An article takes you to understand CSS pagination examples