* finally RestClient's PUT request is working
* and elasticsearch is accepting data directly from request
* was happening because of bad handling of request params.