removing JSON_FORCE_OBJECT from json_encode() in getPayload(). it broke bulk indexing when trying to index an array.