elasticsearch/elasticsearch — pull request #5304 by jpountz (2014-02-28 21:34:58+00:00)
Title: Terms aggs: only use ordinals on low-cardinality fields by default.

Ordinals tend to be slower and more wasteful memory-wise on high-cardinality fields.