support the "doc" param in update api

See http://www.elasticsearch.org/guide/reference/api/update/