# Geohash Aggregation min\_doc\_count Usage

**URL:** <https://discuss.elastic.co/t/geohash-aggregation-min-doc-count-usage/145832>\
**Category:** Kibana\
**Created:** [August 24, 2018, 4:13am UTC](https://discuss.elastic.co/t/geohash-aggregation-min-doc-count-usage/145832 "2018-08-24T04:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [August 28, 2018, 5:03pm UTC](https://discuss.elastic.co/t/geohash-aggregation-min-doc-count-usage/145832/6 "2018-08-28T17:03:42Z")

</div>

Yes, I've looked at the code for geohash\_grid aggregations in Elasticsearch and it seems it doesn't support `min_doc_count`.  
If you were just getting the query results, you could use something like `bucket_selector` to emulate min\_doc\_count, but this isn't possible to do in Kibana right now.

> [@How to use the Bucket Selector to emulate min\_doc\_count?](https://discuss.elastic.co/t/how-to-use-the-bucket-selector-to-emulate-min-doc-count/37049):
>
> I want to eliminate all empty buckets from a range aggregation. According to [https://github.com/elastic/elasticsearch/issues/10027](https://github.com/elastic/elasticsearch/issues/10027) the [Bucket Selector Pipeline Aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/search-aggregations-pipeline-bucket-selector-aggregation.html#issuecomment-162449165) is the way to go, but I'm struggling with its syntax. Here's what I have so far: { "aggs": { "values\_histogram": { "range": { "field": "value", "ranges": [{ "from": 1, "to": 2 }, { "from": 2, "to": 3 }, { "from": 3, "to": 4 }] }, "aggs": { …

---

_[View the full topic](https://discuss.elastic.co/t/geohash-aggregation-min-doc-count-usage/145832)._
