# Geo type not working with es 7

**URL:** <https://discuss.elastic.co/t/geo-type-not-working-with-es-7/267518>\
**Category:** Elasticsearch\
**Created:** [March 17, 2021, 1:39pm UTC](https://discuss.elastic.co/t/geo-type-not-working-with-es-7/267518 "2021-03-17T13:39:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwei](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cwei](https://discuss.elastic.co/u/cwei)\
**Post date:** [March 17, 2021, 1:39pm UTC](https://discuss.elastic.co/t/geo-type-not-working-with-es-7/267518/1 "2021-03-17T13:39:37Z")

</div>

We have an open source elasticsearch (7.10.1) deployed along with some custom plugs-ins and modules.

And the geo type is not working with it.

```auto
curl.sh -X PUT "https://<elasticsearch-host-name>:9200/example?pretty" -H 'Content-Type: application/json' -d' { "mappings": { "properties": { "location": { "type": "geo_shape" } } } } '
{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "No handler for type [geo_shape] declared on field [location]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "Failed to parse mapping [_doc]: No handler for type [geo_shape] declared on field [location]",
    "caused_by" : {
      "type" : "mapper_parsing_exception",
      "reason" : "No handler for type [geo_shape] declared on field [location]"
    }
  },
  "status" : 400
}

```

I have checked that the es 7 instance does have the following jars in the lib folder and in its class path.

'org.locationtech.jts:jts-core:1.15.0'  
'org.locationtech.spatial4j:spatial4j:0.7'

I am not able to reproduce this in the open source elasticsearch, I suspect this is due to the custom plugins/modules we added. But anyone has any insight about how to debug this further?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 17, 2021, 4:06pm UTC](https://discuss.elastic.co/t/geo-type-not-working-with-es-7/267518/2 "2021-03-17T16:06:50Z")

</div>

What are the plugins you are mentioning?

---

<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:** [April 14, 2021, 4:07pm UTC](https://discuss.elastic.co/t/geo-type-not-working-with-es-7/267518/3 "2021-04-14T16:07:04Z")

</div>

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