How can I configure Spring Data Elasticsearch to "rotate" indexes, such as for logstash for example?
I mean, with logstash we have an index for every day and refer to indexes as logstash-*. There a kind of index templating referenced in docs: https://www.elastic.co/guide/en/elasticsearch/guide/current/index-templates.html
Can I write something like:
@Document(indexName="index-{date_today}", ...)
Where date_today is exactly current date. How can I reproduce the same behavior with spring data elasticsearch?