Geo-distance query to match geo_point within a given distance of a geopoint


I'm seeking clarification regarding the distance utilised for filtering documents using the geo-distance query (Geo-distance query | Elasticsearch Guide [8.9] | Elastic).

In each of my documents, there exists a property of the "MultiLineString" geoshape type. Given a geographical location point (coordinates), my objective is to filter and locate documents where the geoshape falls within the distance threshold I've defined. My tests indicate that the geo-distance query appears to suit my use case. However, I'm unable to find specific information regarding the nature of the distance employed. Is this distance calculated to the center, the shortest distance to one of the "MultiLineString" coordinates/points, or the shortest distance to the polygon/convex shape of the "MultiLineString"?

Thank you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.