6 public $adapter = null;
7 public $prefix = '\phorkie\Database_Adapter_Null';
9 public function __construct()
11 if ($GLOBALS['phorkie']['cfg']['elasticsearch'] != '') {
12 $this->adapter = 'Elasticsearch';
13 $this->prefix = '\phorkie\Database_Adapter_Elasticsearch';
16 public function getSearch()
18 $class = $this->prefix . '_Search';
22 public function getIndexer()
24 $class = $this->prefix . '_Indexer';
28 public function getSetup()
30 $class = $this->prefix . '_Setup';