We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0072bc + 6bbe687 commit a21b36cCopy full SHA for a21b36c
src/ElasticquentTrait.php
@@ -333,6 +333,21 @@ public function removeFromIndex()
333
return $this->getElasticSearchClient()->delete($this->getBasicEsParams());
334
}
335
336
+ /**
337
+ * Partial Update to Indexed Document
338
+ *
339
+ * @return array
340
+ */
341
+ public function updateIndex()
342
+ {
343
+ $params = $this->getBasicEsParams();
344
+
345
+ // Get our document body data.
346
+ $params['body']['doc'] = $this->getIndexDocumentData();
347
348
+ return $this->getElasticSearchClient()->update($params);
349
+ }
350
351
/**
352
* Get Search Document
353
*
0 commit comments