dimagi/commcare-hq — pull request #4670 by esoergel (2014-10-31 10:51:28+00:00)
Title: Make terms facet accurate.

In light of this horrid default behavior:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-terms-facet.html#_accuracy_control

Looks like elasticsearch 1.0 handles this [a bit
better](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_size_amp_shard_size)
anyways, with size defaulting to Integer.MAX_VALUE
@nickpell @emord