From: Christian Weiske Date: Mon, 7 May 2012 18:47:01 +0000 (+0200) Subject: move elasticsearch code in one folder X-Git-Tag: v0.2.0~21 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/7c5ea8dded583601f29c7ea9bcb507ecbdd854d6?ds=sidebyside move elasticsearch code in one folder --- diff --git a/scripts/index.php b/scripts/index.php index eb328b5..5afbee0 100644 --- a/scripts/index.php +++ b/scripts/index.php @@ -39,7 +39,6 @@ $db->getSetup()->setup(); $rs = new Repositories(); list($repos, $count) = $rs->getList(0, 10000); -$idx = new Indexer_Elasticsearch(); foreach ($repos as $repo) { echo 'Indexing ' . $repo->id . "\n"; $idx->addRepo($repo, filectime($repo->gitDir)); diff --git a/src/phorkie/Database.php b/src/phorkie/Database.php index e9a75a1..9854e7c 100644 --- a/src/phorkie/Database.php +++ b/src/phorkie/Database.php @@ -5,17 +5,17 @@ class Database { public function getSearch() { - return new Search_Elasticsearch(); + return new Database_Adapter_Elasticsearch_Search(); } public function getIndexer() { - return new Indexer_Elasticsearch(); + return new Database_Adapter_Elasticsearch_Indexer(); } public function getSetup() { - return new Database_Setup_Elasticsearch(); + return new Database_Adapter_Elasticsearch_Setup(); } } diff --git a/src/phorkie/Indexer/Elasticsearch.php b/src/phorkie/Database/Adapter/Elasticsearch/Indexer.php similarity index 98% rename from src/phorkie/Indexer/Elasticsearch.php rename to src/phorkie/Database/Adapter/Elasticsearch/Indexer.php index 077865e..d9d1032 100644 --- a/src/phorkie/Indexer/Elasticsearch.php +++ b/src/phorkie/Database/Adapter/Elasticsearch/Indexer.php @@ -1,7 +1,7 @@