spring-data-jest
spring-data-jest copied to clipboard
Is it possible to rotate indexes in Spring data jest based on a pattern
Is it possible to rotate indexes in Spring data jest using the indexName
property in @Document
. This is similar to how we can do the same in filebeat example event_log-%{+yyyy.MM.dd}
.
Hi @gauravbrills , Actually I think it's not possible.
It's a great idea, and enhancement. Can you try to propose a little POC of this functionality on a PR ?
Thanks for your idea and your help. Julien.
@VanRoy ya I will try (been bit busy) I think should be easy just need to have some kind of a scheduler and then use the elasticsearch rollover api to roll over to the next , also create an alias when the first time creating the index. We currently do it in our app based on a scheduler though have to manually create the alias and then have the rollover api take care of the rest .
@gauravbrills Thanks for your help.