spring-projects/spring-data-examples

Rolling index strategy Elastic Search

sabareeshkkanan opened this issue · 4 comments

As now Spring Data ES supports rolling index strategy, i would love to see some examples of it using date.
Please point me in any direction on this as i cannot find any documentation on how to do it

Paging @sothawo. Is this something worth adding?

@sabareeshkkanan what do you mean when referring to

Spring Data ES supports rolling index strategy

Something along the line of using index templates how I described it in this post? Or the possibility to use SpEL expressions for the name of an index in the @Document annotation?

@sothawo i was leaning more towards "the possibility to use SpEL expressions for the name of an index in the @document annotation? " Also we should look into supporting data streams for this

Just saw that this originally is an old issue. Might be worth to add a small example to the code. @mp911de I added this to my list of things to do.