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?