4 //configure the elasticsearch index
5 set_include_path(__DIR__ . '/../src/' . PATH_SEPARATOR . get_include_path());
6 require_once __DIR__ . '/../data/config.php';
7 require_once 'HTTP/Request2.php';
8 require_once 'Elasticsearch/Request.php';
11 $r = new Elasticsearch_Request(
12 $GLOBALS['phinde']['elasticsearch'],
13 \HTTP_Request2::METHOD_DELETE
19 $r = new Elasticsearch_Request(
20 $GLOBALS['phinde']['elasticsearch'],
21 \HTTP_Request2::METHOD_PUT
24 file_get_contents(__DIR__ . '/../data/elasticsearch-mapping.json')