Using elasticsearch and scala to create perform analytics on a financial portfolio