now works with share-dev to create aggregations and nested aggregation queries to elasticsearch