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


(Abhilash Sathe) #1

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?


(David Pilato) #2

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


(system) #3

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