Script query is not returning whole double value

POST gs011_carea_area/_search
{
"from": 0,
"size": 0,
"version": true,
"aggregations": {
"filters": {
"filter": {
"bool": {
"must": [
{
"terms": {
"id": [
76701
],
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {
"DB_PLOTS": {
"terms": {
"script": {
"source": "doc.area_count.value",
"lang": "painless"
},
"size": 1000000,
"min_doc_count": 1,
"shard_min_doc_count": 0,
"show_term_doc_count_error": false,
"order": [
{
"_count": "desc"
},
{
"_key": "asc"
}
]
}
}
}
}
}
}
I suppose to get resposne as 3.92... but it is returning me 3 as result
Can you please help me

Hey,

first, please use markdown to format your code and code snippets. This will make everything much more readable and increase the chances of a reply.

second, please provide a fully reproducible example including index creation/mapping, document indexing and then the query, otherwise it is almost impossible to follow the steps and assumptions you had (like getting a 3.92 response).

Thanks!

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