class TimeByMonthElasticSearchIndexStrategy extends TemplateElasticSearchIndexStrategy {

    public TimeByMonthElasticSearchIndexStrategy(ReactiveElasticsearchClient client, ElasticSearchIndexProperties properties) {
        super("time-by-month", client, properties);
    }

    @Override
    public String getIndexForSave(String index) {<FILL_FUNCTION_BODY>}
}

        LocalDate now = LocalDate.now();
        String idx = wrapIndex(index);
        return idx + "_" + now.getYear() + "-" + now.getMonthValue();
    
<methods>public void <init>(java.lang.String, org.jetlinks.community.elastic.search.service.reactive.ReactiveElasticsearchClient, org.jetlinks.community.elastic.search.index.ElasticSearchIndexProperties) ,public abstract java.lang.String getIndexForSave(java.lang.String) ,public java.lang.String getIndexForSearch(java.lang.String) ,public Mono<org.jetlinks.community.elastic.search.index.ElasticSearchIndexMetadata> loadIndexMetadata(java.lang.String) ,public Mono<org.jetlinks.community.elastic.search.index.ElasticSearchIndexMetadata> putIndex(org.jetlinks.community.elastic.search.index.ElasticSearchIndexMetadata) <variables>