Skip to content

Conversation

@cbuescher
Copy link
Member

Currently we don't write the count value to the geo_centroid aggregation rest response, but it is provided via the java api and the count() method in the GeoCentroid interface. As discussed in #24366, we should add this parameter to the rest output and provide it via the getProperty() method.
This change adds rendering toXContent, adapts unit and integration tests and the response example in the documentation. I'm not sure if adding a parameter to REST requires other updates (like entry into migration docs, rest specs etc...)

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.

LGTM thanks @cbuescher

@cbuescher cbuescher merged commit 16a7cbe into elastic:master Apr 28, 2017
cbuescher added a commit that referenced this pull request Apr 28, 2017
Currently we don't write the count value to the geo_centroid aggregation rest response,
but it is provided via the java api and the count() method in the GeoCentroid interface.
We should add this parameter to the rest output and also provide it via the getProperty()
method.
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