We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to use getIndicesFromAlias and it's throwing a JestElasticSearchException when it can't find the index.
This is the code that throws.
public Set<String> getIndicesFromAlias(String aliasName) { JestResult result = execute(new GetAliases.Builder().addIndex(aliasName).build()); if (!result.isSucceeded()) { return Collections.emptySet(); }
It seems to me that it should be using the other execute and passing in acceptNotFound as true. So it should be:
JestResult result = execute(new GetAliases.Builder().addIndex(aliasName).build(), true);
Was wondering if this was the intended action, or should I be catching the 404 and dealing with it myself.
Thanks
The text was updated successfully, but these errors were encountered:
Hi @nfratin , thanks for your feedback.
I will check that, I guess that it will be better with "acceptNotFound" enabled but I need to check the compatibility with many versions of ES.
Julien.
Sorry, something went wrong.
VanRoy
No branches or pull requests
I'm trying to use getIndicesFromAlias and it's throwing a JestElasticSearchException when it can't find the index.
This is the code that throws.
It seems to me that it should be using the other execute and passing in acceptNotFound as true. So it should be:
JestResult result = execute(new GetAliases.Builder().addIndex(aliasName).build(), true);
Was wondering if this was the intended action, or should I be catching the 404 and dealing with it myself.
Thanks
The text was updated successfully, but these errors were encountered: