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 945ad4f + a21b36c commit 66a9cb4Copy full SHA for 66a9cb4
src/ElasticquentTrait.php
@@ -11,10 +11,6 @@
11
*/
12
trait ElasticquentTrait
13
{
14
- /**
15
- * @var array mapping properties
16
- */
17
- public $mappingProperties;
18
19
/**
20
* Uses Timestamps In Index
@@ -337,6 +333,21 @@ public function removeFromIndex()
337
333
return $this->getElasticSearchClient()->delete($this->getBasicEsParams());
338
334
}
339
335
336
+ /**
+ * Partial Update to Indexed Document
+ *
+ * @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