Skip to content

Mark SearchSourceBuilder as ToXContentObject#24795

Merged
javanna merged 2 commits intoelastic:masterfrom
javanna:enhancement/search_source_builder_toxcontentobject
May 19, 2017
Merged

Mark SearchSourceBuilder as ToXContentObject#24795
javanna merged 2 commits intoelastic:masterfrom
javanna:enhancement/search_source_builder_toxcontentobject

Conversation

@javanna
Copy link
Copy Markdown
Contributor

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