Skip to content

[helpers] add support for transport options to all helpers #1400

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

Merged
merged 6 commits into from
Feb 18, 2021
Merged

[helpers] add support for transport options to all helpers #1400

merged 6 commits into from
Feb 18, 2021

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Feb 8, 2021

I'm looking to specify custom headers while using the bulk helpers, which isn't currently currently supported in this helper. This change adds support for this param, extends it to include the ,h=bp piece of the x-elastic-client-meta just like the client.helpers.scroll(), and passes the reqOptions to client.bulk().

Also added support for reqOptions to client.helpers.msearch(). It's already supported in all other helpers

@spalger spalger requested a review from delvedor February 8, 2021 21:46
Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very useful, thanks! We should add the same for other helpers.
If you don't have time to do it, I can do it soon.

@spalger spalger changed the title [helpers/bulk] add support for transport options [helpers] add support for transport options to all helpers Feb 9, 2021
Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@delvedor delvedor merged commit 973a981 into elastic:master Feb 18, 2021
delvedor pushed a commit that referenced this pull request Feb 18, 2021
@spalger spalger deleted the implement/bulk-helper-transport-options branch February 22, 2021 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants