I have downloaded my Inbox and I'm processing my emails with Pig and Hadoop. I have used Pig and Wonderdog to index these emails in ElasticSearch.
Now I am creating a web page for each email address in my inbox, to show messages sent by these addresses.
I can do this in two ways:
1) Group by email address in Pig, store to MongoDB (or ElasticSearch).
2) Query ElasticSearch to return this list for me from the email index using facets.
Which one is the go-to answer, and upon what does it depend?