-
Notifications
You must be signed in to change notification settings - Fork 196
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
Fixes #283 #538
Fixes #283 #538
Conversation
Thanks for the pull request @urinud , could you please add a few test cases to verify the change under |
Also this is a breaking change to existing users, isn't it? |
I don’t think is a breaking change as zero is not a valid value for the slices. Also this change maintains consistency with the equivalent feature in Elastic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Please remove ES license from new files, and confirm that you're not copying any code from non-open-source (APLv2-compatible) codebases.
For DCO I think you need to amend your commits. LMK if you need help with that?
java-client/src/test/java/org/opensearch/client/opensearch/core/DeleteByQueryRequestTest.java
Outdated
Show resolved
Hide resolved
java-client/src/test/java/org/opensearch/client/opensearch/core/ReindexRequestTest.java
Outdated
Show resolved
Hide resolved
0eeae4a
to
a477810
Compare
java-client/src/test/java/org/opensearch/client/opensearch/core/DeleteByQueryRequestTest.java
Show resolved
Hide resolved
Signed-off-by: Uriel Dan Nudelman <[email protected]>
Signed-off-by: Uriel Dan Nudelman <[email protected]>
Hello @reta and @VachaShah can you please help reviewing the PR? Is there anything else I should have added? |
Description
Adds the option to set slices=auto for UpdateByQueryRequest, DeleteByQueryRequest and ReindexRequest.
Using value 0 (zero) to express auto slicing.
This maintains consistency with elastic/elasticsearch#53068
Issues Resolved
Fixes #283
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.