# CIRCLE geometry is not supported?

**URL:** <https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505>\
**Category:** Elasticsearch\
**Created:** [June 6, 2019, 7:02am UTC](https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505 "2019-06-06T07:02:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamazy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iamazy/32/36501_2.png) [@iamazy](https://discuss.elastic.co/u/iamazy)\
**Post date:** [June 6, 2019, 7:02am UTC](https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505/1 "2019-06-06T07:02:04Z")

</div>

hello  
I query by geo\_shape but got this error

```auto
unsupported_operation_exception: CIRCLE geometry is not supported

```

the dsl as followed,

```json
{
  "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

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

```

Is there any right way to avoid this warning?  
thanks

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [June 7, 2019, 4:39pm UTC](https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505/2 "2019-06-07T16:39:28Z")

</div>

> [@iamazy](#):
>
> Is there any right way to avoid this warning?

At the moment, the only way is to replace this circle in query with its polygon approximation. Please see [this github issue](https://github.com/elastic/elasticsearch/issues/39237) for the relevant discussion.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2019, 4:39pm UTC](https://discuss.elastic.co/t/circle-geometry-is-not-supported/184505/3 "2019-07-05T16:39:32Z")

</div>

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