DSL : Format avg result

Hi,

I'm using a DSL script to extract some datas.
I use an aggregation with an average method. It's ok, but the end result does not suit me :confused:

Indeed, the result format is like this 5133.076923076923 and I would like to get something like that 5133,07
Therefore, two decimal characters and a comma instead of the point.

My question is : is it possible to code the format of the result ?

A part of my code :

		"aggs": {
			"duration_moy": {
				"avg": {
				"field": "total.start.duration"
				}

Thanks.
Rick

i'm searching always one solution... :confused:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.