gpt4 book ai didi

elasticsearch - 将index.routing.allocation.require.box_type标记添加到旧索引吗?

转载 作者:行者123 更新时间:2023-12-02 23:27:25 27 4
gpt4 key购买 nike

我尝试使用hot/warm体系结构,但是已经有很多索引。

我可以在旧索引中添加index.routing.allocation.require.box_type标签吗?

最佳答案

您应该使用api方法设置索引设置。对于所有索引,请使用_all

例:

curl -XPUT -d '{"index.routing.allocation.require.box_type": "warm"}' localhost:9200/_all/_settings?preserve_existing=true

参数 preserve_existing=true表示不覆盖现有的 box_type

关于elasticsearch - 将index.routing.allocation.require.box_type标记添加到旧索引吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41217802/

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