I am a newbie to elasticsearch.
I have two different document types such as account and invoice. Account document is having country information. I am able to bucket aggregate account documents based on country. Now I want to bucket aggregate invoice documents based on the account name. This whole thing should be in a single aggregation. Please let me know if more information is needed.
accounts - categorize by country
invoice - categorize by invoice
Thank you in advance for the help.