Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gauravbrills opened this issue Feb 8, 2018 · 3 comments

Comments

@gauravbrills
Copy link
Contributor

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

@VanRoy
Copy link
Owner

VanRoy commented Feb 24, 2018

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.

@gauravbrills
Copy link
Contributor Author

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

@VanRoy
Copy link
Owner

VanRoy commented Aug 20, 2018

@gauravbrills Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants