#!/usr/bin/env php allow404 = true; $r->send(); //recreate it $r = new Elasticsearch_Request( $GLOBALS['phinde']['elasticsearch'], \HTTP_Request2::METHOD_PUT ); $r->setBody($json); $r->send(); ?>