s = Search(using=client, index='airbnb', doc_type='sleep_overs')
body = {'size': 0, 'aggs': {'by_house': {'terms': {'field': 'house_number',
    'size': 0}}}}
s = Search.from_dict(body)
s = s.index('airbnb')
s = s.doc_type('sleepovers')
body = s.to_dict()
t = s.execute()
for item in t.aggregations.by_house.buckets:
    pass
агрегировать поле в elasticsearch-dsl, используя python