5 require_once __DIR__ . '/../src/phorkie/autoload.php';
6 require_once __DIR__ . '/../data/config.default.php';
7 if (file_exists(__DIR__ . '/../data/config.php')) {
8 require_once __DIR__ . '/../data/config.php';
10 if ($GLOBALS['phorkie']['cfg']['setupcheck']) {
14 $r = new Database_Adapter_Elasticsearch_HTTPRequest(
15 $GLOBALS['phorkie']['cfg']['elasticsearch'] . 'repo/_search',
16 \HTTP_Request2::METHOD_GET
23 'query' => (object)array(
24 'bool' => (object)array(
27 'query_string' => (object)array(
32 'has_child' => (object)array(
34 'query' => (object)array(
35 'query_string' => (object)array(
48 echo $res->getBody() . "\n";