gpt4 book ai didi

indexing - elasticsearch-是否可以动态设置index.ttl.interval

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

是否可以动态设置为index-indexs.ttl.interval?

我试过了,并得到了这个异常(exception):无法更新非动态设置。

最佳答案

Didn't find correct documentation for the correct syntax, so with fews try i succeeded  :
PUT to : localhost:9200/_cluster/settings
body:
{
"persistent" : {
"indices.ttl.interval" : "120"
}
}

it will survive the restart.

or

{
"transient" : {
"indices.ttl.interval" : "120"
}
}

it will take effect until you restart the service

关于indexing - elasticsearch-是否可以动态设置index.ttl.interval,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29006709/

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