Computing Distance from a Reference Point with Script Fields and the Explain API
Posted by Vineeth Mohan September 28, 2015We’ve recently posted articles on topics ranging from simple scripting to advanced methods in scripting to eliminating duplicates in your indexes.
Here in this tutorial, we help you learn how to combine the script_fields and geo_point methods to generate examples that you can use for modeling in a wide variety of real-world applications. We also give a brief introduction of the Explain API, which is a good aid in understanding how Elasticsearch computes document scores.