Re: Nested list aggregation

2015-03-25 Thread Masaru Hasegawa
Hi, If you define "stages" as nested type, query like this should work: { "query": { "match_all": {} }, "aggs": { "0": { "nested": { "path": "msg.stat.stages" }, "aggs": { "1": { "terms": { "field": "stage" },

Nested list aggregation

2015-03-24 Thread Vasily Kirichenko
I have documents like this in my index: { "time": "2015-03-24T08:24:55.9056988", "msg": { "corrupted": false, "stat": { "fileSize": 10186, "stages": [ { "stage": "queued", "duration": 420