How to merge results of two aggregations

(Aravindh S) #1

Hi, I have two terms aggregations. Both return an id and a doc_count for each of the ids. How can I merge the result of these two. I would like to do an union as well as intersection of both the results.

(Mark Walkom) #2

Take a look at pipeline aggs

If that doesn't do it then you need to do it in code.

(system) #3