ES-5.0.0 with php client query error

No idea until you print the JSON document which is sent to elasticsearch.
Can you do that?