-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Python Module - es.indices.exists doesn't support wildcards as it should #2708
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
Comments
Hello! Thank you for your question. In the future, I would prefer Markdown code blocks rather than screenshots of code, as they are easier to work with, even when working in a notebook. If I understand correctly, what you're seeing is:
If yes, then that's not evidence of the wildcard support failing. I believe you don't have an index named To confirm that theory you can use |
I just saw your edit, and can confirm the behavior. Looking into it more, thank you. |
Digging into it a bit more, I realized that you need to use es.indices.exists(index="...-data-2024-11-12*", allow_no_indices=False) |
I'm going to go ahead and close this, but I would still be happy to know if that fixed your problem or not. And I can always reopen if needed. |
Hello ! Sorry about the non-markdown format, noted for the next time. Thanks for your help, it worked. I read the doc of the Merci ! |
In the documentation:
Documentation of exists function
It is written that exists method supports wildcards ('*'). My screenshot aim to prove that it doesn't, in version 8.14 and lilkely later versions, since it was already written in the documentation for release 8.14.0 it had the support for wildcards.
Just for the context: This index doesn't exists, neither does a variation of its name.
The text was updated successfully, but these errors were encountered: