elasticsearch/issues/4880 serialize