4 class Database_Setup_Elasticsearch
6 public function __construct()
8 $this->searchInstance = $GLOBALS['phorkie']['cfg']['elasticsearch'];
11 public function setup()
13 $r = new Database_Adapter_Elasticsearch_HTTPRequest(
14 $this->searchInstance . 'repo/_mapping',
15 \HTTP_Request2::METHOD_DELETE
20 //mapping for repositories
21 $r = new Database_Adapter_Elasticsearch_HTTPRequest(
22 $this->searchInstance . 'repo/_mapping',
23 \HTTP_Request2::METHOD_PUT
28 'repo' => (object)array(
29 '_timestamp' => (object)array(
33 'properties' => (object)array(
34 'id' => (object)array(
37 'description' => (object)array(
41 'crdate' => (object)array(
45 'tstamp' => (object)array(
57 $r = new Database_Adapter_Elasticsearch_HTTPRequest(
58 $this->searchInstance . 'file/_mapping',
59 \HTTP_Request2::METHOD_PUT
64 'file' => (object)array(
65 '_parent' => (object)array(
68 'properties' => (object)array(
69 'name' => (object)array(
73 'extension' => (object)array(
77 'content' => (object)array(