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 org.elasticsearch.index.mapper.MapperParsingException: failed to parse […] Caused by: org.elasticsearch.common.compress.NotXContentException: Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes After investigating and testing a little, we discovered that the problem is the JSON array. Single objects…
Read More