spring-data-jest icon indicating copy to clipboard operation
spring-data-jest copied to clipboard

Is it possible to rotate indexes in Spring data jest based on a pattern

Open gauravbrills opened this issue 7 years ago • 3 comments

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}.

gauravbrills avatar Feb 08 '18 19:02 gauravbrills

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 avatar Feb 24 '18 11:02 VanRoy

@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 avatar Aug 16 '18 20:08 gauravbrills

@gauravbrills Thanks for your help.

VanRoy avatar Aug 20 '18 16:08 VanRoy