进入控制台
https://es-cn-5yd***********0fz.kibana.elasticsearch.aliyuncs.com:5601/app/dev_tools#/console
查看表结构字段
GET /cdr-test-3-20241129/_mapping
搜索
bash
GET /cdr-test-3-20241129/_search
{
"query": {
"bool": {
"must": [
{
"term": {
"company_id": {
"value": 353
}
}
}
]
}
},
"aggs" : {
"total_amount": {
"sum": {
"field": "amount"
}
}
}
}
结果