Elasticsearch 6.0: index JSON file via Java API throws MapperParsingException

When writing our first Elasticsearch tutorial we stumbled over a problem when working with the bulk insert. If you try to index data coming from a JSON file (or string so to say, no difference in behavior) that contains an array of objects, we always ran into a following MapperParsingException. 1. MapperParsingException

After investigating and testing a little, we discovered that the problem is the JSON array. Single objects via JSON files or strings are no problem. You can have a look here on different ways described by the Elasticsearch team…

Read More