我正在使用下面的查询来获取双精度值,但它忽略了点后的小数。
POST gs011_tasks/_search
{
"from": 0,
"size": 0,
"version": true,
"aggregations": {
"DB_PLOTS": {
"terms": {
"script": {
"source": "doc['area_count']", // this is double value:3.92922
"lang": "painless"
}
}
}
}
}
Area stored in elastic search is 3.925022
Expected value from above query is 3.925022
Actual value returned is 3
如果我们需要添加任何配置,您能帮我吗?