Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented May 19, 2017

SearchSourceBuilder#toXContent prints out a complete object, hence it should implement ToXContentObject

SearchSourceBuilder#toXContent prints out a complete object, hence it should implement ToXContentObject
if (aggregations != null) {
builder.field(AGGREGATIONS_FIELD.getPreferredName(), aggregations);
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Can you merge the toXContent and innerToXContent() methods?

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 point, done!

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM

@javanna javanna merged commit ae73670 into elastic:master May 19, 2017
javanna added a commit that referenced this pull request May 19, 2017
SearchSourceBuilder#toXContent prints out a complete object, hence it should implement ToXContentObject
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.

4 participants