0
こんにちは、 私はインプレッションの総インプレッション合計を集計するためにこれまでのところ運がないと試していますが、エラーが発生し続けます。アグリゲーションフィールドの合計を集計する
GET smarttag-2016.06.28.*/_search?search_type=count
{
"query": {
"bool": {
"must": [{
"range": {
"@timestamp": {
"gte": "2016-06-28T10:00:00",
"lt": "2016-06-28T11:00:00"
}
}
}],
"must_not": [
{
"term": {
"tagType": {
"value": "app"
}
}
}
]
}
},
"aggs": {
"TagId": {
"terms": {
"field": "TagId",
"size": 0
},
"aggs": {
"name": {
"terms": {
"field": "url",
"size": 0
},
"aggs": {
"tagType": {
"terms": {
"field": "type"
},
"aggs": {
"impressions": {
"sum": {
"field": "imp"
}
}
}
}
}
}
}
},
"sum_imp": {
"sum_bucket": {
"buckets_path": "TagId>name>tagType>impressions"
}
}
}
}
エラー:
{
"error": {
"root_cause": [],
"type": "reduce_search_phase_exception",
"reason": "[reduce] ",
"phase": "query",
"grouped": true,
"failed_shards": [],
"caused_by": {
"type": "aggregation_execution_exception",
"reason": "buckets_path must reference either a number value or a single value numeric metric aggregation, got: java.lang.Object[]"
}
},
"status": 503
}
私は私が間違っているのかを理解していない は、私は次のクエリを得ました。
私は "size:0"という名前の下でaggが問題かもしれないと思いますか? – haltabush
私は思いません。私はそれを削除し、私はまだ同じエラーが発生します。 – wizard