如何从旧版本重新索引Elasticsearch数据到新版本

发布于 2025-01-23 23:11:10 字数 891 浏览 3 评论 0原文

我是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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文