5 * Configure the elasticsearch index.
6 * Throws away all data.
8 require_once __DIR__ . '/../src/init.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')