这是我的专栏之一
因此,所有这些值加起来为 1.272。现在我尝试为它创建一个度量可视化,但我得到了
为什么是0?该字段是索引中的数字类型。
更新
所以我试着有意义地运行这个
post indexName/_search
{
"size": 0,
"aggs": {
"sum block": {
"sum": {
"field": "blockSize"
}
}
}
}
}
}
我明白了
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 12,
"max_score": 0,
"hits": []
},
"aggregations": {
"sum block": {
"value": 0
}
}
}
为什么会这样?它不应该加起来浮点值吗?同样,在索引映射中
"blockSize": {
"type": "long"
}
这不应该是浮点数还是双倍?如果它很长,那么为什么它会在值中存储小数点?