# The error response for search\_geometry query with ES 6.7.2

**URL:** <https://discuss.elastic.co/t/the-error-response-for-search-geometry-query-with-es-6-7-2/294914>\
**Category:** Elasticsearch\
**Created:** [January 20, 2022, 9:09am UTC](https://discuss.elastic.co/t/the-error-response-for-search-geometry-query-with-es-6-7-2/294914 "2022-01-20T09:09:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduardo\_Montes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eduardo_montes/32/100049_2.png) [@Eduardo\_Montes](https://discuss.elastic.co/u/Eduardo_Montes)\
**Post date:** [January 20, 2022, 9:09am UTC](https://discuss.elastic.co/t/the-error-response-for-search-geometry-query-with-es-6-7-2/294914/1 "2022-01-20T09:09:12Z")

</div>

Hello, I sent the search\_geometry query to ES V6.7.2 and got error (see below). With another ES server V6.2.4 I got correct response without error. Is there any bug in version 6.7.2? Or could be this error caused by the ES configuration? Is possible to get ES configuration for the comparing via REST API?

Thanks!

```auto
invalid_shape_exception: maxY must be >= minY: 49.5287899237304 to 49.52649707772727 Failed to execute phase [query], all shards failed; shardFailures {[FgIThjxKTX6SYiWS-lyyrw][t__example_feature_qaxcgfmp][0]: RemoteTransportException[[localhost][127.0.0.1: 9300][indices: data/read/search[phase/query]]]; nested: QueryShardException[
failed to create query:
{
    "dis_max": {
        "tie_breaker": 0.0,
        "queries": [
            {
                "bool": {
                    "must": [
                        {
                            "type": {
                                "value": "example_feature",
                                "boost": 1.0
                            }
                        },
                        {
                            "bool": {
                                "must": [
                                    {
                                        "geo_shape": {
                                            "search_geometry": {
                                                "shape": {
                                                    "type": "envelope",
                                                    "coordinates": [
                                                        [
                                                            8.475764441148469,
                                                            49.52649707772727
                                                        ],
                                                        [
                                                            8.471344147143332,
                                                            49.5287899237304
                                                        ]
                                                    ]
                                                },
                                                "relation": "intersects"
                                            },
                                            "ignore_unmapped": false,
                                            "boost": 1.0
                                        }
                                    },
                                    {
                                        "match_all": {
                                            "boost": 1.0
                                        }
                                    }
                                ],
                                "adjust_pure_negative": true,
                                "boost": 1.0
                            }
                        }
                    ],
                    "adjust_pure_negative": true,
                    "boost": 1.0
                }
            }
        ],
        "boost": 1.0
    }
}

```

---

<div class="post-metadata">

**Author:** ![Eduardo\_Montes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eduardo_montes/32/100049_2.png) [@Eduardo\_Montes](https://discuss.elastic.co/u/Eduardo_Montes)\
**Post date:** [January 20, 2022, 2:37pm UTC](https://discuss.elastic.co/t/the-error-response-for-search-geometry-query-with-es-6-7-2/294914/2 "2022-01-20T14:37:46Z")

</div>

The error caused client and server version incompatibility. The Java client has version 6.2.4 and with server version 6.2.4 works correctly, with server version 6.7.2 the error occurs.

---

<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:** [February 17, 2022, 2:38pm UTC](https://discuss.elastic.co/t/the-error-response-for-search-geometry-query-with-es-6-7-2/294914/3 "2022-02-17T14:38:21Z")

</div>

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