如何从旧版本重新索引Elasticsearch数据到新版本
我是Elasticsearch的新手,我想知道如何从旧版本到新版本重新索引Elasticsearch数据,
用例: 我在名称为data_1的版本5中创建了旧索引,我想在版本6中将其索引
以显示我可以在下面运行 curl'localhost:9200/_cat/indices?v'
要映射我可以在下面运行 curl -get http:// localhost:9200/data_1/_mapping?pretty
现在问题是如何使用相同的旧映射创建新索引,我引用了此链接 https://www.thirdrocktechkno.com/blog/6-step-to-to-to-to-to-to-reindex-reindex-reindex-elasticsearch-data /& https://www.elastic.co/guide/ en/elasticsearch/reference/7.10/docs-reindex.html
,但它没有解释如何在新索引中添加相同的映射,我们创建了以重新索引旧索引。
有人可以在这里帮助我,我是ES的新手。
问候, 武士
I am new to Elasticsearch and I want to know How to reindex Elasticsearch data from old version to new version,
Use case:
I have old index created in version 5 named as data_1 and I want to get it re indexed in version 6
to display i can run below
curl 'localhost:9200/_cat/indices?v'
to get mapping I can run below
curl -GET http://localhost:9200/data_1/_mapping?pretty
now question is how to create new index with same old mapping, I referred this link https://www.thirdrocktechkno.com/blog/6-steps-to-reindex-elasticsearch-data/ & https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html
but its not explaining how to add same mapping in new index which we create to re index old one.
can someone help me here I am new to ES.
Regards,
Samurai
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论