co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch._types.mapping.VersionProperty: Unknown field 'index'

Hi,

When I tried to create an index containing a field of type: "version" or "geo_point" with 'index' : true/false (sample input below) through the Java API client (7.17.7), I am getting the following exception. Could some on help on this.

Input 1 :

"my_version": {
        "type": "version",
        "store": true,
       "index": false
      }

Exception :

co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch._types.mapping.VersionProperty: Unknown field 'index' (JSON path: mappings.properties.my_version.index) (in object at line no=1, column no=792, offset=791)

Input 2 :

"location": {
        "type": "geo_point",
        "index": false,
        "store": true,
        "doc_values": false
     }

Exception :

co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch._types.mapping.GeoPointProperty: Unknown field 'index' (JSON path: mappings.properties.location.index) (in object at line no=1, column no=790, offset=789)

I am using PutTemplateRequestBuilder::withJson(Reader input) method to parse the mappings. Any help on this would be greatly appreciated.

Thanks.

Hi Sundar,

Thanks for raising this error. There is currently an open GitHub issue out for this issue. check out the below issue and discuss thread for details:

  1. GitHub Issue
  2. Discuss thread

Thanks for the reply @carly.richmond.
Do we have some workaround up until the original issue is fixed?

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