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

标签 indexing elasticsearch

是否可以动态设置为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/

相关文章:

SQL 使用字符串函数提高索引列性能

algorithm - 关于空间索引的好书/文章

mysql - 如何优化对大量行使用分组依据的查询

elasticsearch - 使用 docker compose 时使用空格传递 ES_JAVA_OPTS 变量

elasticsearch - 查询项和过滤器项在完全匹配时返回零结果,但是查询匹配返回结果。为什么?

java - 自动添加数组的行

c# - 简单但令人沮丧的列表框和文本框再次搜索

elasticsearch - 在嵌套文档上查询关键字类型的范围

elasticsearch - Elasticsearch带破折号的模糊搜索短语

elasticsearch - ElasticSearch-按IP搜索[regex]