Aggregation with matched nested objects

(Arkkanoid) #1

I'm implementing a terms aggregation with a field in a nested object.
What I expect is that the aggregation only takes the matched nested object, but it takes the whole document.
I've seen a partial solution using a filter in the aggregation, but it's limited because I can only apply range, match or terms filters.
There is another approach to get an aggregation with only the matched nested objects?

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.