Elasticsearch does not compute repeated values in the metric aggregation