CIRCLE geometry is not supported?

hello
I query by geo_shape but got this error

unsupported_operation_exception: CIRCLE geometry is not supported

the dsl as followed,

{
  "query": {
    "geo_shape": {
      "location": {
        "shape": {
          "type": "circle",
          "radius": "1km",
          "coordinates": [4.8888,52.37815]
        }
      }
    }
  }
}

and I find the solution is set location field mapping 's strategy as recursive, but when i put this mapping got warning

#! Deprecation: Field parameter [strategy] is deprecated and will be removed in a future version.

Is there any right way to avoid this warning?
thanks

At the moment, the only way is to replace this circle in query with its polygon approximation. Please see this github issue for the relevant discussion.

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