Elasticsearch _reindex/elasticsearch-dump不会复制源索引的所有字段 [英] Elasticsearch _reindex/elasticsearch-dump does not copy all fields of the source index
问题描述
我在Elasticsearch 6.x中有一个索引,我想将此索引复制到新的Elastic Search 7中.
I have an index in elasticsearch 6.x, I want to copy this index to new elastic search 7.
我尝试使用 elasticsearch-dump:v6.24.0
& _reindex
API.我能够从源索引复制数据,但并非所有字段/属性都已被完全复制.似乎跳过了其中的几个.
I tried using elasticsearch-dump:v6.24.0
& _reindex
api. I was able to copy the data from the source index, but not all the fields/properties are getting fully copied. It seems to skip few of them.
我要去哪里错了?
这是_reindex请求.
This is the _reindex request.
POST _reindex
{
"source": {
"remote": {
"host": "http://prodsystem:9200"
},
"index": "file",
"query": {
"match_all": {}
}
},
"dest": {
"index": "filebkp"
}
}
推荐答案
使用elasticsearchdump转储您旧的Elasticsearch的映射,设置和数据.之后,再次使用elasticsearchdump将数据还原到新的Elasticsearch. https://github.com/elasticsearch-dump/elasticsearch-dump
Use elasticsearchdump to dump your's mapping, settings and data of old elasticsearch. After use elasticsearchdump again to restore data to new elasticsearch. https://github.com/elasticsearch-dump/elasticsearch-dump
这篇关于Elasticsearch _reindex/elasticsearch-dump不会复制源索引的所有字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!