We want results sorted by radius of 100 KM of both the Source and Destination of the same document. So the idea is matching results based on closest to Source and Destination. May I get some help how to write this Search Query to give me this type of result? Do you have sample queries?
Just wanted to follow up if anyone has any insights how we can acheive this? The document mapping can be any structure. The key point is that the document contains a source and destination and being able to use two gepoints in the query to order results? Is this possible
I don't have in-depth knowledge of geo queries but what I would try in your scenario would be to use a sort script. I would write a script that was capable of calculating the distance of the points from the radius.
I believe it would work, but on the other hand you could lose performance because we are using script in the query.
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.