fix error
This commit is contained in:
parent
4a8c0fca3b
commit
98dd9fce61
|
|
@ -2,14 +2,15 @@ package org.jetlinks.community.elastic.search.index.strategies;
|
|||
|
||||
import org.jetlinks.community.elastic.search.ElasticRestClient;
|
||||
import org.jetlinks.community.elastic.search.index.ElasticSearchIndexMetadata;
|
||||
import org.jetlinks.community.elastic.search.index.ElasticSearchIndexProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
@Component
|
||||
public class DirectElasticSearchIndexStrategy extends AbstractElasticSearchIndexStrategy {
|
||||
|
||||
public DirectElasticSearchIndexStrategy(ElasticRestClient client) {
|
||||
super("direct", client);
|
||||
public DirectElasticSearchIndexStrategy(ElasticRestClient client, ElasticSearchIndexProperties properties) {
|
||||
super("direct", client,properties);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue