Github user cjolif commented on the issue:
https://github.com/apache/flink/pull/5374
good news the issue reported by @jdewald is now fixed in Elasticsearch
master. Not sure which version of Elasticsearch will contain the fix though. ---
