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

getIndex doesn't support date math in index aliases #3011

Open
tastyminerals opened this issue Feb 23, 2024 · 1 comment
Open

getIndex doesn't support date math in index aliases #3011

tastyminerals opened this issue Feb 23, 2024 · 1 comment

Comments

@tastyminerals
Copy link

tastyminerals commented Feb 23, 2024

We are using date math when doing index rollover tasks and use the following string pattern "<index-{now/w{YYYY-ww}}-0001>". Looks like getIndex doesn't support date math in index names.

val resp = client.execute {
      getIndex("<index-{now/w{YYYY-ww}}-0001>")
}.await.result

Throws an exception

com.sksamuel.elastic4s.http.JavaClientExceptionWrapper: java.lang.IllegalArgumentException: Illegal character in path at index 1: /<index-{now/w{YYYY-ww}}-0001>

Index creation via createIndex works though.

@Philippus
Copy link
Owner

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

No branches or pull requests

2 participants