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?
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.