|
@@ -2,6 +2,7 @@ package org.jetlinks.community.elastic.search.index.strategies;
|
|
|
|
|
|
import org.hswebframework.utils.time.DateFormatter;
|
|
|
import org.jetlinks.community.elastic.search.ElasticRestClient;
|
|
|
+import org.jetlinks.community.elastic.search.index.ElasticSearchIndexProperties;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Date;
|
|
@@ -17,8 +18,8 @@ public class TimeByMonthElasticSearchIndexStrategy extends TemplateElasticSearch
|
|
|
|
|
|
private final String format = "yyyy-MM";
|
|
|
|
|
|
- public TimeByMonthElasticSearchIndexStrategy(ElasticRestClient client) {
|
|
|
- super("time-by-month", client);
|
|
|
+ public TimeByMonthElasticSearchIndexStrategy(ElasticRestClient client, ElasticSearchIndexProperties properties) {
|
|
|
+ super("time-by-month", client,properties);
|
|
|
}
|
|
|
|
|
|
@Override
|