4 class Database_Setup_Elasticsearch
6 public function __construct()
8 $this->searchInstance = $GLOBALS['phorkie']['cfg']['elasticsearch'];
11 public function setup()
14 //mapping for repositories
15 $r = new \HTTP_Request2(
16 $this->searchInstance . 'repo/_mapping',
17 \HTTP_Request2::METHOD_PUT
22 'repo' => (object)array(
23 'properties' => (object)array(
24 'id' => (object)array(
27 'description' => (object)array(
39 $r = new \HTTP_Request2(
40 $this->searchInstance . 'file/_mapping',
41 \HTTP_Request2::METHOD_PUT
46 'file' => (object)array(
47 '_parent' => (object)array(
50 'properties' => (object)array(
51 'name' => (object)array(
55 'extension' => (object)array(
59 'content' => (object)array(