Skip to content

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