def get_domains(self):
search = User.search()<EOL>search.aggs.bucket('<STR_LIT>', '<STR_LIT>', field='<STR_LIT>', order={'<STR_LIT>': '<STR_LIT>'}, size=<NUM_LIT:100>)<EOL>response = search.execute()<EOL>return [entry.key for entry in response.aggregations.domains.buckets]<EOL>
Retrieves the domains of the users from elastic.