Skip to content
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

UpdateRequest implements ToXContent #23289

Merged
merged 2 commits into from
Feb 21, 2017

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Feb 21, 2017

This commit changes UpdateRequest so that it implements the ToXContentObject interface. This will be useful for the High Level Rest client when executing UpdateRequests.

This commit changes UpdateRequest so that it implements the ToXContentObject interface.
Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

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

left one comment, LGTM besides that

}
if (fetchSourceContext != null) {
builder.field("_source", fetchSourceContext);
}
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we print out fields as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, I'll add it

@tlrx tlrx merged commit 3a0fc52 into elastic:master Feb 21, 2017
@tlrx tlrx deleted the add-update-request-toxcontent branch February 21, 2017 14:20
@tlrx
Copy link
Member Author

tlrx commented Feb 21, 2017

Thanks @javanna !

tlrx added a commit that referenced this pull request Feb 21, 2017
This commit changes UpdateRequest so that it implements the ToXContentObject interface.
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