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