Aggregations GeoDistanceFacet.Entry.getMin() equivalent


(deejay) #1

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.
To view this discussion on the web visit 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.


(deejay) #2

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.
To view this discussion on the web visit 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.


(Binh Ly) #3

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.
To view this discussion on the web visit 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.


(system) #4