Geo_shape query: LineString: Intersects

I need to check if my linestring or part of my linestring falls within or intersects my circle with a given radius.

Mapping: Its a lineString type with two coordinates (start and end). Say a long road,

"geometry": {
                        "type": "geo_shape",
                        "tree": "quadtree"
                    }

I have a lat,lon and a radius.

Query: I need to check whether this lineString lies within or intersects my circle.
Further Query: I have many such lineStrings and need to get it sorted from the nearest line.

Can anyone please help me here ?

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