#!/usr/bin/env php
<?php
namespace phinde;
-//configure the elasticsearch index
-set_include_path(__DIR__ . '/../src/' . PATH_SEPARATOR . get_include_path());
-require_once __DIR__ . '/../data/config.php';
-require_once 'HTTP/Request2.php';
-require_once 'Elasticsearch/Request.php';
+/**
+ * Configure the elasticsearch index.
+ * Throws away all data.
+ */
+require_once __DIR__ . '/../src/init.php';
//delete old index
$r = new Elasticsearch_Request(