Geo_shape: Circle query not supported

I have a field indexed using below:

"geometry": {
"type": "geo_shape"
}

Above geometry is a LineString.

I want to see if my spatial query i.e. a circle query intersects this line for given radius.

"filter": {
    "geo_shape": {
        "geometry": {
            "shape": {
                "type": "circle",
                "radius": "50.0m",
                "coordinates": [
                    -71.1538415,
                    44.1631872
                ]
            },
            "relation": "intersects"
        }
    }
} 

Error i get is Circle operation not supported.

This works great if i use prefix tree.
I have started using default BKD implementation due less heap usage of this way and better accuracy/performance.

Is there a way that i can achieve above with default geo_shape implementation ?

Kindly help !

It is currently not supported to query by CIRCLE in the default indexing strategy. The only way to achieve that would be to approximate the circle to a polygon.

Hope this helps.

Thanks @Ignacio_Vera.
The terma created by previous strategy occupies a lot of heap. Hope to see the support for for CIRCLE query soon.
It will solve a lot of heap problems for people storing and querying spatial data.

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