-
Notifications
You must be signed in to change notification settings - Fork 191
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 #1116 - Add cancel_after_time_interval #1147
Conversation
Signed-off-by: uri.nudelman <[email protected]>
Signed-off-by: uri.nudelman <[email protected]>
Signed-off-by: uri.nudelman <[email protected]>
Signed-off-by: uri.nudelman <[email protected]>
Hello @dblock what do you think of this PR ? |
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.
Thanks!
- @Xtansia is working to generate this code from spec in https://github.com/opensearch-project/opensearch-api-specification, @urinud can you help making sure this field exists and is used in tests in that project?
- Looks good!
Leaving this open for @Xtansia to make sure this is in line with what the spec will do.
@dblock & @Xtansia , I see the field defined in: |
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.
Changes look good, just one small nit @urinud
* <p> | ||
* API name: {@code cancel_after_time_interval} | ||
*/ | ||
public final Builder cancelAfterTimeInterval(@Nullable Time value) { |
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.
This should also have the builder Function
overload like you've added to SearchRequest
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.
@Xtansia , added the function overload method.
I did not added initially becase no other method has function overloads.
Signed-off-by: uri.nudelman <[email protected]>
* Fixes #1116 Signed-off-by: uri.nudelman <[email protected]> * Adds MsearchRequest. Fixes SearchRequest. Signed-off-by: uri.nudelman <[email protected]> * Update CHANGELOG.md Signed-off-by: uri.nudelman <[email protected]> * spotlessJavaCheck Signed-off-by: uri.nudelman <[email protected]> * Adds Builder Function method in MSearch Signed-off-by: uri.nudelman <[email protected]> --------- Signed-off-by: uri.nudelman <[email protected]> Co-authored-by: uri.nudelman <[email protected]> (cherry picked from commit c84ad24) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fixes #1116 * Adds MsearchRequest. Fixes SearchRequest. * Update CHANGELOG.md * spotlessJavaCheck * Adds Builder Function method in MSearch --------- (cherry picked from commit c84ad24) Signed-off-by: uri.nudelman <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: uri.nudelman <[email protected]>
Description
Describe what this change achieves.
Add
cancel_after_time_interval
field toSearchRequest
andMsearchRequest
requests in the Java client.Issues Resolved
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.