[英]How to implement index rollover properties/condition in ES using spring-data-elasticsearch
How can I add the following property values in elastic search when using spring-data-elasticsearch?使用 spring-data-elasticsearch 时如何在 elasticsearch 中添加以下属性值?
Currently, I creating dynamic index name using:目前,我使用以下方法创建动态索引名称:
@Document(indexName = "#{@esConfig.getIndexName()}", shards = 1, replicas = 0, refreshInterval = "5s", createIndex = false) @Document(indexName = "#{@esConfig.getIndexName()}", shards = 1, replicas = 0, refreshInterval = "5s", createIndex = false)
Index lifecycle Actions are currently not supported in Spring Data Elasticsearch. Spring 数据 Elasticsearch 目前不支持索引生命周期操作。
You'd need to implement this using the functions that the Elasticsearch client offers.您需要使用 Elasticsearch 客户端提供的功能来实现它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.