Closed
Description
Java API client version
8.12.2
Java version
21
Elasticsearch Version
8.12.2
Problem description
On the DateHistogramAggregation.Builder it is possible to add a name using builder.name("xyz"). when doing that the aggregation fails saying that the content is invalid. If the name is not set the aggregation works. It seems to me that there is no need for that field anyway since the name of the aggregation is the key in the map Map<String, Aggregation>