diff --git a/src/Iverberk/Larasearch/Proxy.php b/src/Iverberk/Larasearch/Proxy.php index 72813e0..ee6e4b0 100644 --- a/src/Iverberk/Larasearch/Proxy.php +++ b/src/Iverberk/Larasearch/Proxy.php @@ -219,6 +219,7 @@ public function updateDoc($model) 'id' => $model->getEsId(), 'index' => $this->getIndex()->getName(), 'type' => $this->getType(), + 'retry_on_conflict' => 2, 'body' => [ 'doc_as_upsert' => true, 'doc' => $model->transform(),