added elasticsearch schema control scripts
stuff
figured out group by using aggregations