I wanted to use script term aggregation to process array of Geo point locations using arcDistance function in painless. But it seems like the arcDistance function always takes the first (lat,lon) location to do distance measurement. is there any way to access the rest of the locations in the array of geopoints..
Ok thanks! I did not realize this is a limitation on elastic search part. Is there a work around aside from implementing custom location distance function?
Storing one point per field, implementing it as custom native script plugin, or the workaround at the end of the issue is pretty much all I can think of at the moment. However, fixing this issue in elasticsearch is pretty high on my priority list.
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.