From ef6622826a0c0a1132537492698768a250cb1e04 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 8 May 2012 18:06:22 +0200 Subject: delete elasticsearch index when indexing to clean up properly --- scripts/index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'scripts/index.php') diff --git a/scripts/index.php b/scripts/index.php index 5afbee0..4b529d1 100644 --- a/scripts/index.php +++ b/scripts/index.php @@ -28,13 +28,9 @@ if ($GLOBALS['phorkie']['cfg']['setupcheck']) { $db = new Database(); $idx = $db->getIndexer(); -//cleanup -echo "Deleting all index data\n"; -$idx->deleteAllRepos(); - //create mapping -echo "Index setup\n"; -$db->getSetup()->setup(); +echo "Index reset\n"; +$db->getSetup()->reset(); $rs = new Repositories(); -- cgit v1.2.3