Skip to content

Conversation

@cbuescher
Copy link
Member

The count value in the stats aggregation represents a simple doc count
that shouldn't require a formatted version. We didn't render an "as_string"
version for count in the rest response, so the method should also be
removed in favour of just using String.valueOf(getCount()) if a string
version of the count is needed.

Closes #24287

The `count` value in the stats aggregation represents a simple doc count
that doesn't require a formatted version. We didn't render an "as_string"
version for count in the rest response, so the method should also be
removed in favour of just using String.valueOf(getCount()) if a string
version of the count is needed.

Closes elastic#24287
@cbuescher cbuescher requested a review from colings86 April 24, 2017 14:28
@cbuescher
Copy link
Member Author

I will open a separate PR for the deprecation in 5.x

@cbuescher
Copy link
Member Author

I opened #24292 for the deprecation in 5.4

Copy link
Contributor

@colings86 colings86 left a comment

Choose a reason for hiding this comment

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

LGTM

@cbuescher cbuescher merged commit 026bf2e into elastic:master Apr 24, 2017
javanna pushed a commit to javanna/elasticsearch that referenced this pull request May 23, 2017
…stic#24291)

The `count` value in the stats aggregation represents a simple doc count
that doesn't require a formatted version. We didn't render an "as_string"
version for count in the rest response, so the method should also be
removed in favour of just using String.valueOf(getCount()) if a string
version of the count is needed.

Closes elastic#24287
@cbuescher cbuescher deleted the remove-stats-getCountAsString branch November 27, 2025 10:50
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