弹性搜索 - 重新索引到相同的索引名称 [英] Elasticsearch--reindexing to the same index name

查看:197
本文介绍了弹性搜索 - 重新索引到相同的索引名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个旧的索引,我想改变映射。现在我需要将旧映射转化为新映射。我一直在阅读stackoverflow,如



这一个



这一个



和这一个



但我不认为他们是我的确切答案问题。



许多使用不同的索引名称,因此操作更容易,但由于安装,我们使用更粗略的方法来卷曲数据,这需要确切的索引名称。



现在我的问题是:将旧索引(或几个索引)重新索引到新的索引是一个好方法



ex。



我的当前地址将是 http:// address-to-server:port / cluster-name / index-name '



我想要重建索引旧数据使得当我 curl -XGET'http:// address-to-server:port / cluster-name / index-name'它会给旧

解决方案

作为我的以前的答案,您可以使用重建索引插件来执行映射更改操作



https://github.com/codelibs/elasticsearch-reindexing



还要确保您的新映射有效,并通过检查样本输入数据


将采用您的旧数据

I have several old indices which I'd like to change mapping of. Now I need to transform old mapping into new ones. I've been reading on stackoverflow like

This one

This one

and this one

But I don't think they're the exact answer to my question.

Many of those use a different index name, so operation is easier that way, but due to the setup, we use a more crude way of curl-ing the data, which requires the exact index name.

Now my question is: what's a good way to reindex an old index (or several indices) to new one

ex.

my current address would be 'http://address-to-server:port/cluster-name/index-name'

I want to be able to reindex the old data so that when i curl -XGET 'http://address-to-server:port/cluster-name/index-name' it'll give the the old data in new mapping (some additional fields, some modified)

解决方案

As my previous answer you can use reindexing plugins to perform the mapping change actions

https://github.com/codelibs/elasticsearch-reindexing

And also make sure that your new mapping is valid and will adopt your old data by checking sample input data

这篇关于弹性搜索 - 重新索引到相同的索引名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆