From 404b5ce3e74783ddfdbf86efd7763d656c7e32fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Raddaoui=20Mar=C3=ADn?= Date: Wed, 4 Dec 2024 20:41:43 +0100 Subject: [PATCH] Trust recreate option on index creation --- .../lib/arElasticSearchPlugin.class.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php b/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php index 33f0910e26..0170ba146e 100644 --- a/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php +++ b/plugins/arElasticSearchPlugin/lib/arElasticSearchPlugin.class.php @@ -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