Geo type not working with es 7

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.

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?

What are the plugins you are mentioning?

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