4 //configure the elasticsearch index
5 require_once __DIR__ . '/../src/init.php';
8 $r = new Elasticsearch_Request(
9 $GLOBALS['phinde']['elasticsearch'],
10 \HTTP_Request2::METHOD_DELETE
16 $r = new Elasticsearch_Request(
17 $GLOBALS['phinde']['elasticsearch'],
18 \HTTP_Request2::METHOD_PUT
21 file_get_contents(__DIR__ . '/../data/elasticsearch-mapping.json')