Using the 2.0 php client bulk() I'm getting "ERROR: 400 parse_exception: Failed to derive xcontent" on some documents. The linked document below consistently hits this exception. My ES instance is running 2.2.0. Before the bulk() is called I can see the document structure in php, it's like the other documents before it in the bulk queue, but this hits the exception. What's interesting though, is if I limit my bulk() batch to just 1 document in each bulk(), the document array exists, then after the exception the document array passed to bulk() is empty. The php client is emptying the array for some reason.
The document, however, is being created. Seems like I can simply ignore the error?
In Sense I can create the document no problem, no error.
I see a lot of posts on this Failed to derive xcontent, but nothing seems to apply to my case that I've found so far.
The forum wouldn't allow me to insert the document in question into my post here, which is pretty large, so here's a link: https://www.ezrackbuilder.com/large-document.txt