I'm doing an aggregation, limiting the buckets size to 6, and I would have a bucket having the sum of the other values.
I see Kibana deal with that in a hidden way. At Kibana we can configure an aggregation to delivery the sum of other values, but while inspecting the visualization query and response, this information is not available.
I'm using kibana as an example about what I want to do in my query. I'm not expecting to use Kibana as data source, so I'm trying to figure out how to do that only querying to the ES API.