elasticsearch/elasticsearch — pull request #7425 by philwills (2014-08-24 21:43:49+00:00)
Title: Make the name of an aggregation builder public

As mentioned in https://groups.google.com/forum/?#!msg/elasticsearch/fe9S2mECMEI/57xZK7i6V7MJ, I'd like the name of an AggregationBuilder to be public. I'm attempting to build a wrapper that will provide some type safety around the type of aggregation in the query and the result and not having access to the name is making the API much clunkier than it would otherwise be.