Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Ignore ElasticSearch Index Document Error
Browse files Browse the repository at this point in the history
  • Loading branch information
rankarpan committed Aug 10, 2018
1 parent 2e7a7b7 commit 07bc95e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Drivers/ElasticSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function indexDocument($model, $type)
'body' => $model
];

return $this->client->index($params);
try {
return $this->client->index($params);
} catch (\Exception $e) {}
}

public function createIndex()
Expand Down

0 comments on commit 07bc95e

Please sign in to comment.