Hi,
I am using Range Aggregation with Java API [5.0] and following the documentations in below link.
https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/_bucket_aggregations.html
And executing the following code :
System.out.println(" ---range agg--- "+AggregationBuilders.range("agg").field("height").addUnboundedTo(1.0f).addRange(1.0f, 1.5f).addUnboundedFrom(1.5f));
And getting { "error" : "JsonGenerationException[Can not write a field name, expecting a value]"}
can anyone help me here please where i am doing wrong.