Skip to content

UpdateRequest implements ToXContent#23289

Merged
tlrx merged 2 commits intoelastic:masterfrom
tlrx:add-update-request-toxcontent
Feb 21, 2017
Merged

UpdateRequest implements ToXContent#23289
tlrx merged 2 commits intoelastic:masterfrom
tlrx:add-update-request-toxcontent

Conversation

@tlrx
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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