Skip to content

Commit

Permalink
Trust recreate option on index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jraddaoui committed Dec 4, 2024
1 parent 0efd43b commit 404b5ce
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,6 @@ private function recreateIndex($indexName, $indexProperties, $update)
return;
}

try {
$index->delete();
} catch (\Elastica\Exception\ResponseException $e) {
if (404 != $e->getResponse()->getStatus()) {
throw $e;
}
}

// In ES 7.x if the mapping type is updated to a dummy type,
// this may need to include a param for include_type_name
// set to false in order to avoid automatically creating a
Expand Down

0 comments on commit 404b5ce

Please sign in to comment.