I can't get this [1] to work in 5.x, and the documentation no longer includes aggregations [2].
1 - https://www.elastic.co/guide/en/elasticsearch/reference/2.4/mapping-field-names-field.html
2 - https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-field-names-field.html