# Aggregations GeoDistanceFacet.Entry.getMin() equivalent

**URL:** <https://discuss.elastic.co/t/aggregations-geodistancefacet-entry-getmin-equivalent/15852>\
**Category:** Elasticsearch\
**Created:** [February 17, 2014, 4:24pm UTC](https://discuss.elastic.co/t/aggregations-geodistancefacet-entry-getmin-equivalent/15852 "2014-02-17T16:24:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deejay](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@deejay](https://discuss.elastic.co/u/deejay)\
**Post date:** [February 17, 2014, 4:24pm UTC](https://discuss.elastic.co/t/aggregations-geodistancefacet-entry-getmin-equivalent/15852/1 "2014-02-17T16:24:37Z")

</div>

Greetings,

I used a geoDistance() aggregation and retrieved the GeoDistance.Bucket.  
However, the API only has getFrom() and getTo() methods but does not have  
getMin() and getMax() methods which GeoDistanceFacet.Entry does have. I am  
trying to move away from Facets as the specification recommends but I  
cannot seem to find an API to get the closest distance given a point and  
several docs each with a lat and lon.

Is there somewhere where I can get the java docs for ES 1.0?

Kind Regards,

Dirk

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ee9fba03-9072-48c0-8e50-a8ba73f8c2fc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ee9fba03-9072-48c0-8e50-a8ba73f8c2fc%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![deejay](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@deejay](https://discuss.elastic.co/u/deejay)\
**Post date:** [February 18, 2014, 8:28pm UTC](https://discuss.elastic.co/t/aggregations-geodistancefacet-entry-getmin-equivalent/15852/2 "2014-02-18T20:28:58Z")

</div>

In other words, is there a way that I can get the closest/shortest distance  
given a point and docs with a geopoint field using aggregations?

Regards,  
Dirk

On Monday, February 17, 2014 6:24:37 PM UTC+2, Dirk wrote:

> Greetings,
> 
> I used a geoDistance() aggregation and retrieved the GeoDistance.Bucket.  
> However, the API only has getFrom() and getTo() methods but does not have  
> getMin() and getMax() methods which GeoDistanceFacet.Entry does have. I am  
> trying to move away from Facets as the specification recommends but I  
> cannot seem to find an API to get the closest distance given a point and  
> several docs each with a lat and lon.
> 
> Is there somewhere where I can get the java docs for ES 1.0?
> 
> Kind Regards,
> 
> Dirk

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6c65a4ea-309a-41fd-9ce3-97e63e51a9c1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6c65a4ea-309a-41fd-9ce3-97e63e51a9c1%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 18, 2014, 9:13pm UTC](https://discuss.elastic.co/t/aggregations-geodistancefacet-entry-getmin-equivalent/15852/3 "2014-02-18T21:13:51Z")

</div>

I don't believe this (getMin() and getMax()) is available at the moment.  
Please open a ticket/issue for this.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d00c1b5c-5e2b-4608-8723-7d9f1dc613bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d00c1b5c-5e2b-4608-8723-7d9f1dc613bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:49am UTC](https://discuss.elastic.co/t/aggregations-geodistancefacet-entry-getmin-equivalent/15852/4 "2017-07-06T01:49:18Z")

</div>

Closed on July 6, 2017, 1:49am UTC


