0

我正在使用弹性搜索 1.6.0。这是我的聚合查询:

GET /a/dummydata/_search

    {
       "size": 0,
       "aggs": {
          "sum_trig_amber": {
             "terms": {
                "field": "TRIGGER_COUNT_AMBER"
             }
          },
          "sum_trig_green": {
             "terms": {
                "field": "TRIGGER_COUNT_GREEN"
             }
          },
          "sum_trig-red": {
             "terms": {
                "field": "TRIGGER_COUNT_RED"
             }
          }
       }
    }

有什么办法可以添加三个 sum_trig_amber + sum_trig_red + sum_trig_green ?

4

0 回答 0