From 70bc5c7bcb2a8921315354dbfbb665bbb5f731fb Mon Sep 17 00:00:00 2001 From: Arpan Rank Date: Fri, 10 Aug 2018 15:48:11 +0530 Subject: [PATCH] Ignore ElasticSearch Index Document Error --- src/Drivers/ElasticSearch.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Drivers/ElasticSearch.php b/src/Drivers/ElasticSearch.php index 0c47290..c8dfcc6 100644 --- a/src/Drivers/ElasticSearch.php +++ b/src/Drivers/ElasticSearch.php @@ -150,7 +150,9 @@ public function indexAuditDocument($model) 'body' => $model ]; - return $this->client->index($params); + try { + return $this->client->index($params); + } catch (\Exception $e) {} } public function searchAuditDocument($model)