Mapper of different type, current_type [boolean], merged_type [ObjectMapper] - Elasticsearch bulk import

I'm currently using Elasticsearch's _bulk API to import a JSON dump.
There is a field that has a dynamic data type, i.e. a Boolean type and an Object type.

Due to this, while importing the dump, elasticsearch throws an exception saying

{ type: 'illegal_argument_exception',
  reason: 'mapper **myfieldName** of different type, current_type [boolean], merged_type [ObjectMapper]' }

How can I handle this scenario?

I don't think you can. It can't be both an object and a native field.

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