gpt4 book ai didi

elasticsearch - 是否有图形工具来显示(并可能更改)elasticsearch 映射?

转载 作者:行者123 更新时间:2023-11-29 02:50:08 24 4
gpt4 key购买 nike

我正在使用 https://github.com/mobz/elasticsearch-head ,这很棒 (!),但它没有该功能。

将多个映射放入索引后,我希望能够以图形方式查看它们。这可能吗?

最佳答案

您可以使用新映射创建新索引。我用它来将 logstash 映射从一种类型转换为另一种类型。我用过this reindex plugin取得很大的成功。它使将一个索引流式传输到另一个索引变得更加简单,并且基本上只需要 2 个 http 请求。

像这样:

$ curl -XPOST http://elnode:9200/<New Index Name> -d @<new mapping>.json
$ curl -XPUT http://elnode:9200/<New Index Name>/logs/_reindex\?searchIndex=<Old Index Name>\&searchType=logs

现在你有了一个新的索引,它是新索引与旧索引数据的映射。然后,您可以删除旧索引并使用指向新索引的旧索引名称创建一个别名。

一些工作,但我需要它以新格式保存旧的 logstash 数据。

关于elasticsearch - 是否有图形工具来显示(并可能更改)elasticsearch 映射?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15204921/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com