I get several documents with a location inside. At the end of a period, I want to collect all the locations to create a new document which will be the route of those points (linestring)
How can I do that? Pipelines seems to alter the document itself and watcher seems to have basic actions (except webhook).
I do not know of any great ways to do this as of now. We are working on a new aggregation called geo_line, which will create a line-string from a bucket of points: https://github.com/elastic/elasticsearch/pull/41612.
Another option you can explore for the interim is to use a top-hits aggregation (which is limited to number of results) within a watch to fetch some points for a specific time period together sorted and then create a new document with that data.
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.