I wanted to see how many unique link that a user has posted for every user. Here is what I have come up so far
s.aggs.bucket('user_term', A('terms', field='user__id')).metric('url_count', A('value_count', field='link'))
However, I have yet found a way to iterate through that result. Is there a way for this?