Skip to content

Commit

Permalink
Fixes nickdunn#10
Browse files Browse the repository at this point in the history
  • Loading branch information
creativedutchmen committed Dec 1, 2012
1 parent c1fb678 commit d15ccac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/content.mappings.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ public function action() {
switch ($_POST['with-selected']) {
case 'rebuild':
foreach ($checked as $handle) {
ElasticSearch::getIndex()->getType($handle)->delete();
try{
ElasticSearch::getIndex()->getType($handle)->delete();
}
catch(Exception $e){

}
ElasticSearch::createType($handle);
redirect("{$this->uri}/mappings/");
}
Expand Down

0 comments on commit d15ccac

Please sign in to comment.