elasticsearch/elasticsearch — pull request #5459 by markharwood (2014-03-19 09:35:04+00:00)
Title: Significant_terms agg only creates term frequency cache when necessary 

and uses new TermsEnum wrapper to cache frequencies. Long and String-based aggs no longer need to pass an IndexReader as parameter when looking up frequencies of terms.