elasticsearch/elasticsearch — pull request #6434 by martijnvg (2014-06-06 18:35:56+00:00)
Title: Change the top_hits to be a metric aggregation

Now that there is a distinction between metric aggregation and numeric aggregation, the top_hits aggregation can be a metric aggregation instead of a bucket aggregation that can't hold sub aggregations.